aboutsummaryrefslogtreecommitdiff
path: root/panel-gnome
diff options
context:
space:
mode:
Diffstat (limited to 'panel-gnome')
-rw-r--r--panel-gnome/CMakeLists.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/panel-gnome/CMakeLists.txt b/panel-gnome/CMakeLists.txt
new file mode 100644
index 0000000..1135cd4
--- /dev/null
+++ b/panel-gnome/CMakeLists.txt
@@ -0,0 +1,29 @@
+set (PANEL_LIB "gnome-indicator-datetime")
+
+add_definitions (-DPKGDATADIR="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CMAKE_PROJECT_NAME}")
+
+
+SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g ${CXX_WARNING_ARGS}")
+
+add_library (${PANEL_LIB} SHARED
+ ${CMAKE_SOURCE_DIR}/panel/datetime-prefs.c
+ ${CMAKE_SOURCE_DIR}/panel/datetime-prefs-locations.c
+ ${CMAKE_SOURCE_DIR}/panel/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)
+set_property (TARGET ${PANEL_LIB} PROPERTY OUTPUT_NAME indicator-datetime)
+
+include_directories (SYSTEM ${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)
+