refactor: reformat build configs
This commit is contained in:
parent
8cd4441a44
commit
6bde62db4a
@ -38,6 +38,9 @@ project(GpgFrontendModules
|
||||
# includes
|
||||
include(GenerateExportHeader)
|
||||
|
||||
# function or mode options
|
||||
option(GPGFRONTEND_QT5_BUILD "Swith to Qt5 building mode" OFF)
|
||||
|
||||
# Using Standard C++-17 (Consider compatibility)
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
@ -24,6 +24,7 @@
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
# modules
|
||||
|
||||
add_subdirectory(m_ver_check)
|
||||
add_subdirectory(m_gpg_info)
|
||||
add_subdirectory(m_pinentry)
|
||||
|
@ -27,6 +27,7 @@ aux_source_directory(. INTEGRATED_MODULE_SOURCE)
|
||||
|
||||
# capslock
|
||||
list(APPEND INTEGRATED_MODULE_SOURCE "capslock/capslock.cpp")
|
||||
|
||||
if(MINGW)
|
||||
list(APPEND INTEGRATED_MODULE_SOURCE "capslock/capslock_win.cpp")
|
||||
else()
|
||||
@ -42,7 +43,6 @@ add_library(mod_pinentry SHARED ${INTEGRATED_MODULE_SOURCE})
|
||||
install(TARGETS mod_pinentry
|
||||
LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/modules")
|
||||
|
||||
|
||||
# link options
|
||||
|
||||
# link sdk
|
||||
@ -57,7 +57,5 @@ else()
|
||||
target_link_libraries(mod_pinentry PUBLIC Qt6::Widgets)
|
||||
endif()
|
||||
|
||||
|
||||
# using std c++ 17
|
||||
target_compile_features(mod_pinentry PUBLIC cxx_std_17)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user