aboutsummaryrefslogtreecommitdiff
path: root/panel/CMakeLists.txt
blob: 4ac32891581d51bb50358af0b0bdd54f62750044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set (PANEL_LIB "indicator-datetime")

add_definitions (-DPKGDATADIR="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}")

add_library (${PANEL_LIB} SHARED
             datetime-prefs.c 
             datetime-prefs-locations.c
             datetime-prefs-locations.h
             ${CMAKE_SOURCE_DIR}/src/utils.cpp
             ${CMAKE_SOURCE_DIR}/include/datetime/utils.h
             ${CMAKE_SOURCE_DIR}/include/datetime/settings-shared.h)

include_directories (${PANEL_DEPS_INCLUDE_DIRS})

link_directories (${PANEL_DEPS_LIBRARY_DIRS})

set_property (TARGET ${PANEL_LIB}
              APPEND_STRING PROPERTY COMPILE_FLAGS
              " -g ${CC_WARNING_ARGS} ${GCOV_FLAGS}")

target_link_libraries (${PANEL_LIB} ${PANEL_DEPS_LIBRARIES} ${GCOV_LIBS})

install (TARGETS ${PANEL_LIB}
         DESTINATION ${CMAKE_INSTALL_LIBDIR}/control-center-1/panels)