aboutsummaryrefslogtreecommitdiff
path: root/tools/CMakeLists.txt
blob: 3be325d332e86ac4d9da1d78e3fe39a437c231c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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")

    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()