diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2013-10-30 23:49:58 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-10-30 23:49:58 +0000 |
commit | bbc781d9e2afe500d9a5d09335f0954f25269be6 (patch) | |
tree | 87ad870ab7d39777686e4f9661bcaa4ba41b5e1d /panel/CMakeLists.txt | |
parent | 19ba64b479fd14d5192f0ec3dcc37fe33bde238b (diff) | |
parent | 13cc891202d3721fc157c827ed1141ee6221ccbd (diff) | |
download | ayatana-indicator-datetime-bbc781d9e2afe500d9a5d09335f0954f25269be6.tar.gz ayatana-indicator-datetime-bbc781d9e2afe500d9a5d09335f0954f25269be6.tar.bz2 ayatana-indicator-datetime-bbc781d9e2afe500d9a5d09335f0954f25269be6.zip |
Switch the build system to cmake. Fixes: https://bugs.launchpad.net/bugs/1237509.
Approved by Ted Gould, PS Jenkins bot.
Diffstat (limited to 'panel/CMakeLists.txt')
-rw-r--r-- | panel/CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/panel/CMakeLists.txt b/panel/CMakeLists.txt new file mode 100644 index 0000000..b3fcc7b --- /dev/null +++ b/panel/CMakeLists.txt @@ -0,0 +1,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.c + ${CMAKE_SOURCE_DIR}/src/utils.h + ${CMAKE_SOURCE_DIR}/src/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) + |