~dobey/indicator-datetime/build-parallel

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Charles Kerr
  • Date: 2013-10-18 19:22:54 UTC
  • mto: This revision was merged to the branch mainline in revision 281.
  • Revision ID: charles.kerr@canonical.com-20131018192254-mga1w5zccemycadl
replace autotools with cmake

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set (SERVICE_LIB "libindicatordatetimeservice")
 
2
set (SERVICE_EXEC "indicator-datetime-service")
 
3
 
 
4
add_definitions (-DTIMEZONE_FILE="/etc/timezone"
 
5
                 -DG_LOG_DOMAIN="Indicator-Datetime")
 
6
 
 
7
add_library (${SERVICE_LIB} STATIC
 
8
             clock.c
 
9
             clock.h
 
10
             clock-live.c
 
11
             clock-live.h
 
12
             planner.c
 
13
             planner.h
 
14
             planner-eds.c
 
15
             planner-eds.h
 
16
             service.c
 
17
             service.h
 
18
             timezone.c
 
19
             timezone.h
 
20
             timezone-file.c
 
21
             timezone-file.h
 
22
             timezone-geoclue.c
 
23
             timezone-geoclue.h
 
24
             utils.c
 
25
             utils.h
 
26
             dbus-shared.h
 
27
             settings-shared.h)
 
28
include_directories (${SERVICE_DEPS_INCLUDE_DIRS})
 
29
link_directories (${SERVICE_DEPS_LIBRARY_DIRS})
 
30
 
 
31
add_executable (${SERVICE_EXEC} main.c)
 
32
target_link_libraries (${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES} ${GCOV_LIBS})
 
33
install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
 
34
 
 
35
# common properties
 
36
set_property (TARGET ${SERVICE_LIB} ${SERVICE_EXEC}
 
37
              APPEND_STRING PROPERTY COMPILE_FLAGS
 
38
              " -g ${CC_WARNING_ARGS} ${GCOV_FLAGS}")
 
39
 
 
40