diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-20 15:14:24 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-20 15:14:24 +0200 |
commit | 88492823826b3720be4ba29d246848031418bfb5 (patch) | |
tree | 4f17cc7f4ef3f76f869a1d4fcb94722464aa9d0b /src/CMakeLists.txt | |
parent | Hostlist test: test non-empty domain (diff) | |
download | smolbote-88492823826b3720be4ba29d246848031418bfb5.tar.xz |
Add Kconfiglib to parse Kconfig/.config
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 975cc1b..fbb71aa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -57,24 +57,27 @@ set(srclist ${PROJECT_SOURCE_DIR}/include/browserinterface.h ) -if(CONFIG_QTBUG-62511) +if(DEFINED QTBUG-62511) set_property(SOURCE ${PROJECT_SOURCE_DIR}/data/resources.qrc PROPERTY AUTORCC_OPTIONS "--format-version=1") -endif(CONFIG_QTBUG-62511) +endif() # if you are using a custom build location for breakpad: #if(CONFIG_USEBREAKPAD) # link_directories("${BREAKPAD_LIBRARY_DIRS}") #endif(CONFIG_USEBREAKPAD) -if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") +if(WIN32) add_executable(${CONFIG_POI_EXE} WIN32 ${srclist} ${PROJECT_SOURCE_DIR}/data/windows.rc) else() add_executable(${CONFIG_POI_EXE} ${srclist}) endif() +add_dependencies(${CONFIG_POI_EXE} config_header) + target_include_directories(${CONFIG_POI_EXE} PRIVATE ${Boost_INCLUDE_DIRS} PRIVATE ${PROJECT_SOURCE_DIR}/include + PRIVATE ${PROJECT_BINARY_DIR}/include PRIVATE ${PROJECT_SOURCE_DIR}/lib PRIVATE ${PROJECT_SOURCE_DIR}/plugins ) @@ -104,9 +107,6 @@ endif(CONFIG_USEPLASMA) target_compile_definitions(${CONFIG_POI_EXE} PRIVATE QAPPLICATION_CLASS=QApplication - PRIVATE POI_NAME="${CONFIG_POI_NAME}" - PRIVATE QTBUG_65223_WORKAROUND - #PRIVATE QTBUG_68224_WORKAROUND ) -install(TARGETS ${CONFIG_POI_EXE} RUNTIME DESTINATION ${CONFIG_INSTALL_BIN} CONFIGURATIONS Release) +install(TARGETS ${CONFIG_POI_EXE} RUNTIME DESTINATION ${CONFIG_INSTALL_BINDIR} CONFIGURATIONS Release) |