aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2014-08-19 22:13:45 -0500
committerCharles Kerr <charles.kerr@canonical.com>2014-08-19 22:13:45 -0500
commit2effb243dfdee567a486a34ab0e51d40e953310a (patch)
treecb84b9bc66d9dbe78f48ed69b8e4aaedd1e114e7 /src/CMakeLists.txt
parentb879a604be9b91de6a569c86e6d94a2e04a360dd (diff)
downloadayatana-indicator-display-2effb243dfdee567a486a34ab0e51d40e953310a.tar.gz
ayatana-indicator-display-2effb243dfdee567a486a34ab0e51d40e953310a.tar.bz2
ayatana-indicator-display-2effb243dfdee567a486a34ab0e51d40e953310a.zip
initial pass at 'hello world' src + po
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
new file mode 100644
index 0000000..9f52922
--- /dev/null
+++ b/src/CMakeLists.txt
@@ -0,0 +1,35 @@
+set (SERVICE_LIB "indicatordisplayservice")
+set (SERVICE_EXEC "indicator-display-service")
+
+add_definitions (-DG_LOG_DOMAIN="${CMAKE_PROJECT_NAME}")
+
+# handwritten source code...
+set (SERVICE_LIB_HANDWRITTEN_SOURCES
+ rotation-lock.cpp
+ #controller.cpp
+ #model.cpp
+ #display.cpp
+ #view.cpp
+ #view-gmenu.cpp
+ #world.cpp
+ #world-dbus.cpp)
+
+add_library (${SERVICE_LIB} STATIC
+ ${SERVICE_LIB_HANDWRITTEN_SOURCES})
+
+# add the bin dir to the include path so that
+# the compiler can find the generated header files
+include_directories (${CMAKE_CURRENT_BINARY_DIR})
+
+link_directories (${SERVICE_DEPS_LIBRARY_DIRS})
+
+set (SERVICE_EXEC_HANDWRITTEN_SOURCES main.cpp)
+add_executable (${SERVICE_EXEC} ${SERVICE_EXEC_HANDWRITTEN_SOURCES})
+target_link_libraries (${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES} ${GCOV_LIBS})
+install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
+
+# add warnings/coverage info on handwritten files
+# but not the generated ones...
+set_property (SOURCE ${SERVICE_LIB_HANDWRITTEN_SOURCES} ${SERVICE_EXEC_HANDWRITTEN_SOURCES}
+ APPEND_STRING PROPERTY COMPILE_FLAGS " -std=c++11 -g ${CXX_WARNING_ARGS} ${GCOV_FLAGS}")
+