diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-15 07:32:44 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-10-15 07:41:45 +0200 |
commit | c31a89a3b56e7d081178e09cc58add5c5b84a91a (patch) | |
tree | 4b547f0c347679fa6b3f118f1ba6a231c58010f1 /src | |
parent | Update CMakeLists option names (diff) | |
download | smolbote-c31a89a3b56e7d081178e09cc58add5c5b84a91a.tar.xz |
Rewrite vendor.cmake to cmake/VendorConfig.cmake
Add menuconfig-editable .config files to platforms.
VendorConfig.cmake looks for and includes .config files based on
platform name.
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9425b2d..d6866ac 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -58,24 +58,24 @@ set(srclist ) # if you are using a custom build location for breakpad: -#if(Feature_Breakpad) +#if(CONFIG_USEBREAKPAD) # link_directories("${BREAKPAD_LIBRARY_DIRS}") -#endif(Feature_Breakpad) +#endif(CONFIG_USEBREAKPAD) if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") - add_executable(${poi_exe} WIN32 ${srclist} ${PROJECT_SOURCE_DIR}/data/windows.rc) + add_executable(${CONFIG_POI_EXE} WIN32 ${srclist} ${PROJECT_SOURCE_DIR}/data/windows.rc) else() - add_executable(${poi_exe} ${srclist}) + add_executable(${CONFIG_POI_EXE} ${srclist}) endif() -target_include_directories(${poi_exe} +target_include_directories(${CONFIG_POI_EXE} PRIVATE ${Boost_INCLUDE_DIRS} PRIVATE ${PROJECT_SOURCE_DIR}/include PRIVATE ${PROJECT_SOURCE_DIR}/lib PRIVATE ${PROJECT_SOURCE_DIR}/plugins ) -target_link_libraries(${poi_exe} +target_link_libraries(${CONFIG_POI_EXE} Qt5::Core Qt5::Widgets Qt5::WebEngineWidgets ${Boost_LIBRARIES} SingleApplication @@ -85,24 +85,24 @@ target_link_libraries(${poi_exe} bookmarks downloads web urlfilter ) -if(Feature_Breakpad) - target_link_libraries(${poi_exe} Threads::Threads ${BREAKPAD_LIBRARIES}) - target_include_directories(${poi_exe} PRIVATE ${BREAKPAD_INCLUDE_DIRS}) - target_compile_options(${poi_exe} PRIVATE ${BREAKPAD_CFLAGS_OTHER}) +if(CONFIG_USEBREAKPAD) + target_link_libraries(${CONFIG_POI_EXE} Threads::Threads ${BREAKPAD_LIBRARIES}) + target_include_directories(${CONFIG_POI_EXE} PRIVATE ${BREAKPAD_INCLUDE_DIRS}) + target_compile_options(${CONFIG_POI_EXE} PRIVATE ${BREAKPAD_CFLAGS_OTHER}) - target_compile_definitions(${poi_exe} PRIVATE BreakpadEnabled) -endif(Feature_Breakpad) + target_compile_definitions(${CONFIG_POI_EXE} PRIVATE BreakpadEnabled) +endif(CONFIG_USEBREAKPAD) -if(Feature_Plasma) - target_link_libraries(${poi_exe} KF5::Wallet KF5::WindowSystem) - target_compile_definitions(${poi_exe} PRIVATE PLASMA) -endif(Feature_Plasma) +if(CONFIG_USEPLASMA) + target_link_libraries(${CONFIG_POI_EXE} KF5::Wallet KF5::WindowSystem) + target_compile_definitions(${CONFIG_POI_EXE} PRIVATE PLASMA) +endif(CONFIG_USEPLASMA) -target_compile_definitions(${poi_exe} +target_compile_definitions(${CONFIG_POI_EXE} PRIVATE QAPPLICATION_CLASS=QApplication - PRIVATE POI_NAME=\"${poi_name}\" + PRIVATE POI_NAME="${CONFIG_POI_NAME}" PRIVATE QTBUG_65223_WORKAROUND #PRIVATE QTBUG_68224_WORKAROUND ) -install(TARGETS ${poi_exe} RUNTIME DESTINATION ${installPath_bin} CONFIGURATIONS Release) +install(TARGETS ${CONFIG_POI_EXE} RUNTIME DESTINATION ${CONFIG_INSTALL_BIN} CONFIGURATIONS Release) |