From ccbc06f6041a2688019b5d8a15e7187a4911ee89 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 20 Oct 2018 15:44:05 +0200 Subject: Add cmake manpage target --- src/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index fbb71aa..4ae7448 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -72,8 +72,6 @@ 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 @@ -110,3 +108,8 @@ target_compile_definitions(${CONFIG_POI_EXE} ) install(TARGETS ${CONFIG_POI_EXE} RUNTIME DESTINATION ${CONFIG_INSTALL_BINDIR} CONFIGURATIONS Release) +if(UNIX) +install(FILES ${PROJECT_SOURCE_DIR}/data/poi.svg DESTINATION ${CONFIG_INSTALL_ICONDIR}/hicolor/scalable/apps/poi.svg CONFIGURATIONS Release) +install(FILES ${PROJECT_SOURCE_DIR}/linux/poi.desktop DESTINATION ${CONFIG_INSTALL_APPDIR}/poi.desktop CONFIGURATIONS Release) +install(FILES ${PROJECT_SOURCE_DIR}/data/poi.profile DESTINATION ${CONFIG_INSTALL_LIBDIR}/poi.profile CONFIGURATIONS Release) +endif(UNIX) -- cgit v1.2.1