~ci-train-bot/indicator-transfer/indicator-transfer-ubuntu-zesty-2265

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2015-07-30 19:52:49 UTC
  • mto: (29.2.17 add-plugins)
  • mto: This revision was merged to the branch mainline in revision 33.
  • Revision ID: renato.filho@canonical.com-20150730195249-qc4s3htsbcvzgxot
Splited the package into libindicator-transfer0, libindicator-transfer-dev and indicator-transfer-download-manager.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
set (SERVICE_LIB "indicatortransferservice")
 
1
set (SERVICE_LIB "indicator-transfer")
2
2
set (SERVICE_EXEC "indicator-transfer-service")
3
3
 
4
4
add_definitions (-DG_LOG_DOMAIN="${CMAKE_PROJECT_NAME}")
34
34
target_link_libraries (${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES} ${GCOV_LIBS})
35
35
install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
36
36
 
37
 
# the DownloadManager source plugin...
38
 
set(DM_LIB "dmtransfers")
39
 
set(DM_SOURCES dm-source.cpp dm-plugin.cpp)
40
 
add_library(${DM_LIB} MODULE ${DM_SOURCES})
41
 
target_link_libraries (${DM_LIB} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES} ${GCOV_LIBS})
42
 
install(TARGETS ${DM_LIB} LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
43
 
 
44
37
# add warnings/coverage info on handwritten files
45
38
# but not the generated ones...
46
 
set_property (SOURCE ${SERVICE_LIB_HANDWRITTEN_SOURCES} ${SERVICE_EXEC_HANDWRITTEN_SOURCES} ${DM_SOURCES}
 
39
set_property (SOURCE ${SERVICE_LIB_HANDWRITTEN_SOURCES} ${SERVICE_EXEC_HANDWRITTEN_SOURCES}
47
40
              APPEND_STRING PROPERTY COMPILE_FLAGS " -std=c++11 -fPIC -g ${CXX_WARNING_ARGS} ${GCOV_FLAGS}")
48
41
 
49
42
set_property (SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS PLUGINDIR="${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}")
50
 
#target_compile_definitions(${DM_LIB} PUBLIC -DPLUGINDIR=${CMAKE_INSTALL_FULL_PKGLIBEXECDIR})
 
43
 
 
44
add_subdirectory (dm-plugin)