aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt16
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)