diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-15 17:53:24 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-07-15 17:53:24 +0200 |
commit | 3b3e9f649a1fbd7bd67685bd5f24b45024ed4d6d (patch) | |
tree | b84c6487de997b818020483ded9acfe27a284536 /src | |
parent | Update Building.md (diff) | |
download | smolbote-3b3e9f649a1fbd7bd67685bd5f24b45024ed4d6d.tar.xz |
Add vendor.cmake
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8095cd6..5c7b6df 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -46,19 +46,19 @@ set(poi_SRC ) if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") - add_executable(poi WIN32 ${poi_SRC}) + add_executable(${poi_NAME} WIN32 ${poi_SRC} ../data/windows.rc) else() - add_executable(poi ${poi_SRC}) + add_executable(${poi_NAME} ${poi_SRC}) endif() -target_include_directories(poi +target_include_directories(${poi_NAME} PRIVATE ${Boost_INCLUDE_DIRS} PRIVATE ../3rd-party PRIVATE ../lib ../plugins PRIVATE ../lib/configuration PRIVATE ../lib/web) -target_link_libraries(poi +target_link_libraries(${poi_NAME} Qt5::Core Qt5::Widgets Qt5::Concurrent Qt5::WebEngineWidgets ${Boost_LIBRARIES} SingleApplication @@ -69,16 +69,16 @@ target_link_libraries(poi ) if(Plasma) - target_link_libraries(poi KF5::WindowSystem) - target_compile_definitions(poi + target_link_libraries(${poi_NAME} KF5::WindowSystem) + target_compile_definitions(${poi_NAME} PRIVATE PLASMA_BLUR # give the main window a translucent background and blur ) endif(Plasma) -target_compile_definitions(poi +target_compile_definitions(${poi_NAME} PRIVATE QAPPLICATION_CLASS=QApplication PRIVATE QTBUG_65223_WORKAROUND #PRIVATE QTBUG_68224_WORKAROUND ) -install(TARGETS poi RUNTIME DESTINATION bin CONFIGURATIONS Release) +install(TARGETS ${poi_NAME} RUNTIME DESTINATION ${BINARY_DESTINATION} CONFIGURATIONS Release) |