aboutsummaryrefslogtreecommitdiff
path: root/panel/CMakeLists.txt
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2013-10-31 11:40:41 -0700
committerTed Gould <ted@gould.cx>2013-10-31 11:40:41 -0700
commiteb47d698341bc8f1b46433c48fc280d5a4906ad3 (patch)
tree04e18a96bcad6c22f5079a517c5c8927d1ac49cd /panel/CMakeLists.txt
parenta4a5562fd93fdd6d9cb4b9cde98126fdca3ea21d (diff)
parent0439dc69bfd71c42d01b7d11cb586ef056503b28 (diff)
downloadayatana-indicator-datetime-eb47d698341bc8f1b46433c48fc280d5a4906ad3.tar.gz
ayatana-indicator-datetime-eb47d698341bc8f1b46433c48fc280d5a4906ad3.tar.bz2
ayatana-indicator-datetime-eb47d698341bc8f1b46433c48fc280d5a4906ad3.zip
Merge trunk
Diffstat (limited to 'panel/CMakeLists.txt')
-rw-r--r--panel/CMakeLists.txt25
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)
+