From 3b3e9f649a1fbd7bd67685bd5f24b45024ed4d6d Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sun, 15 Jul 2018 17:53:24 +0200 Subject: Add vendor.cmake --- src/CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/CMakeLists.txt') 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) -- cgit v1.2.1