1
set (SERVICE_LIB "indicatortransferservice")
2
set (SERVICE_EXEC "indicator-transfer-service")
4
add_definitions (-DG_LOG_DOMAIN="${CMAKE_PROJECT_NAME}")
6
# handwritten source code...
7
set (SERVICE_LIB_HANDWRITTEN_SOURCES
15
add_library (${SERVICE_LIB} STATIC
16
${SERVICE_LIB_HANDWRITTEN_SOURCES})
18
# add the bin dir to the include path so that
19
# the compiler can find the generated header files
20
include_directories (${CMAKE_CURRENT_BINARY_DIR})
22
link_directories (${SERVICE_DEPS_LIBRARY_DIRS})
24
set (SERVICE_EXEC_HANDWRITTEN_SOURCES main.cpp)
25
add_executable (${SERVICE_EXEC} ${SERVICE_EXEC_HANDWRITTEN_SOURCES})
26
target_link_libraries (${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES} ${GCOV_LIBS})
27
install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
29
# add warnings/coverage info on handwritten files
30
# but not the generated ones...
31
set_property (SOURCE ${SERVICE_LIB_HANDWRITTEN_SOURCES} ${SERVICE_EXEC_HANDWRITTEN_SOURCES}
32
APPEND_STRING PROPERTY COMPILE_FLAGS " -std=c++11 -g ${CXX_WARNING_ARGS} ${GCOV_FLAGS}")