From 4574b31b93f3f717c3956feb1f96ee00a7506440 Mon Sep 17 00:00:00 2001 From: Louie S Date: Mon, 18 Mar 2024 16:07:43 -0400 Subject: Add conditional install for desktop entry --- CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 682132b..1c5d6b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,8 +101,9 @@ target_link_libraries(assignment-list ${qt_libraries}) # Installation install(TARGETS assignment-list) -# TODO make conditional only for linux # install desktop entry and icon -configure_file(data/assignment-list.desktop.in ${CMAKE_CURRENT_SOURCE_DIR}/data/assignment-list.desktop @ONLY) -install(FILES data/assignment-list.desktop DESTINATION share/applications) -install(FILES data/assignment-list.svg DESTINATION share/pixmaps) +if(CMAKE_SYSTEM MATCHES "Linux.*") + configure_file(data/assignment-list.desktop.in ${CMAKE_CURRENT_SOURCE_DIR}/data/assignment-list.desktop @ONLY) + install(FILES data/assignment-list.desktop DESTINATION share/applications) + install(FILES data/assignment-list.svg DESTINATION share/pixmaps) +endif() -- cgit