aboutsummaryrefslogtreecommitdiff
path: root/panel-unity
diff options
context:
space:
mode:
Diffstat (limited to 'panel-unity')
-rw-r--r--panel-unity/CMakeLists.txt10
1 files changed, 6 insertions, 4 deletions
diff --git a/panel-unity/CMakeLists.txt b/panel-unity/CMakeLists.txt
index f710006..150034c 100644
--- a/panel-unity/CMakeLists.txt
+++ b/panel-unity/CMakeLists.txt
@@ -2,16 +2,18 @@ set (PANEL_LIB "unity-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.c
- ${CMAKE_SOURCE_DIR}/src/utils.h
- ${CMAKE_SOURCE_DIR}/src/settings-shared.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 (${UNITY_PANEL_DEPS_INCLUDE_DIRS})
+include_directories (SYSTEM ${UNITY_PANEL_DEPS_INCLUDE_DIRS})
link_directories (${UNITY_PANEL_DEPS_LIBRARY_DIRS})