~mateo-salta/touch-rss-scope/utfeed1

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Mateo Salta
  • Date: 2014-11-30 22:43:28 UTC
  • Revision ID: mateo_salta@yahoo.com-20141130224328-1bshkjh7chb1kwvs
- Added 4 more custom feeds

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
# Put the ini file in the build directory next to the scope
 
3
# .so file so test tools can find both easily.
 
4
configure_file(
 
5
  "${CMAKE_SOURCE_DIR}/data/com.ubuntu.developer.mateosalta.utfeed_utfeed.ini"
 
6
  "${CMAKE_CURRENT_BINARY_DIR}/com.ubuntu.developer.mateosalta.utfeed_utfeed.ini"
 
7
  @ONLY
 
8
)
 
9
 
 
10
configure_file(
 
11
  "${CMAKE_SOURCE_DIR}/data/com.ubuntu.developer.mateosalta.utfeed_utfeed-settings.ini"
 
12
  "${CMAKE_CURRENT_BINARY_DIR}/com.ubuntu.developer.mateosalta.utfeed_utfeed-settings.ini"
 
13
  @ONLY
 
14
)
 
15
 
 
16
configure_file(
 
17
  "${CMAKE_SOURCE_DIR}/data/logo.png"
 
18
  "${CMAKE_CURRENT_BINARY_DIR}/logo.png"
 
19
  @ONLY
 
20
  COPYONLY
 
21
)
 
22
 
 
23
# The sources to build the scope
 
24
set(SCOPE_SOURCES
 
25
  api/client.cpp
 
26
  scope/preview.cpp
 
27
  scope/query.cpp
 
28
  scope/scope.cpp
 
29
)
 
30
 
 
31
# Find all the headers
 
32
file(GLOB_RECURSE
 
33
  SCOPE_HEADERS
 
34
  "${CMAKE_SOURCE_DIR}/include/*.h" 
 
35
)
 
36
 
 
37
# Build an object library for the scope code
 
38
add_library(
 
39
  scope-static OBJECT
 
40
  ${SCOPE_SOURCES}
 
41
  ${SCOPE_HEADERS}
 
42
)
 
43
 
 
44
# Ensure we export all the symbols
 
45
set_target_properties(
 
46
  scope-static
 
47
  PROPERTIES
 
48
    LINK_FLAGS "-Wl,--export-all-symbols"
 
49
)
 
50
 
 
51
# Build a shared library containing our scope code.
 
52
# This will be the actual plugin that is loaded.
 
53
add_library(
 
54
  scope SHARED
 
55
  $<TARGET_OBJECTS:scope-static>
 
56
)
 
57
 
 
58
# Link against the object library and our external library dependencies
 
59
target_link_libraries(
 
60
  scope
 
61
  ${SCOPE_LDFLAGS}
 
62
  ${Boost_LIBRARIES}
 
63
)
 
64
 
 
65
qt5_use_modules(
 
66
  scope
 
67
  Core
 
68
)
 
69
 
 
70
# Set the correct library output name to conform to the securiry policy 
 
71
set_target_properties(
 
72
  scope
 
73
  PROPERTIES
 
74
    OUTPUT_NAME "com.ubuntu.developer.mateosalta.utfeed_utfeed"
 
75
)
 
76
 
 
77
# Install the scope shared library
 
78
install(
 
79
  TARGETS scope
 
80
  LIBRARY DESTINATION ${SCOPE_INSTALL_DIR}
 
81
)
 
82