aboutsummaryrefslogtreecommitdiff
path: root/tools/CMakeLists.txt
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-12 13:27:15 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-05-12 17:09:30 +0200
commitbfb679de31ba276e0155153fc3efff9b8aacbbf6 (patch)
tree958e56a9a100d74a01022764f199a0bf96c38f59 /tools/CMakeLists.txt
parentc7a152ad3da254704945de297f0de957966fb6b8 (diff)
downloadlibayatana-indicator-bfb679de31ba276e0155153fc3efff9b8aacbbf6.tar.gz
libayatana-indicator-bfb679de31ba276e0155153fc3efff9b8aacbbf6.tar.bz2
libayatana-indicator-bfb679de31ba276e0155153fc3efff9b8aacbbf6.zip
Bring back GTK+-2.0 and GTK+-3.0 build flavours.
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r--tools/CMakeLists.txt19
1 files changed, 12 insertions, 7 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt
index 4120f31..3be325d 100644
--- a/tools/CMakeLists.txt
+++ b/tools/CMakeLists.txt
@@ -1,8 +1,13 @@
-# ayatana-indicator-loader3
+if (FLAVOUR_GTK3)
+ # ayatana-indicator-loader3
-set_source_files_properties(indicator-loader.c PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
-add_executable("ayatana-indicator-loader3" indicator-loader.c)
-target_include_directories("ayatana-indicator-loader3" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
-target_include_directories("ayatana-indicator-loader3" PUBLIC "${CMAKE_SOURCE_DIR}/src")
-target_link_libraries("ayatana-indicator-loader3" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-indicator3)
-add_dependencies("ayatana-indicator-loader3" "ayatana-indicator3")
+ set_source_files_properties(indicator-loader.c PROPERTIES COMPILE_FLAGS ${COMPILE_FLAGS})
+ add_executable("ayatana-indicator-loader3" indicator-loader.c)
+ target_include_directories("ayatana-indicator-loader3" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
+ target_include_directories("ayatana-indicator-loader3" PUBLIC "${CMAKE_SOURCE_DIR}/src")
+ target_link_libraries("ayatana-indicator-loader3" ${PROJECT_DEPS_LIBRARIES} "-L${CMAKE_BINARY_DIR}/src" -layatana-indicator3)
+ add_dependencies("ayatana-indicator-loader3" "ayatana-indicator3")
+
+ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/ayatana-indicator-loader3" DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBEXECDIR}/${PROJECT_NAME}")
+ install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/80indicator-debugging" DESTINATION "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}")
+endif()