~ci-train-bot/libertine-scope/libertine-scope-ubuntu-yakkety-landing-049

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: Stephen M. Webb
  • Date: 2015-12-29 21:50:58 UTC
  • Revision ID: stephen.webb@canonical.com-20151229215058-61rws89cfzys3ar3
initial checkin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SET (CMAKE_INCLUDE_CURRENT_DIR ON)
 
2
SET (CMAKE_AUTOMOC ON)
 
3
 
 
4
find_package(Qt5Core REQUIRED)
 
5
 
 
6
# Find all the sources
 
7
file(GLOB_RECURSE
 
8
  SCOPE_SOURCES
 
9
  "*.cpp"
 
10
  "*.h"
 
11
)
 
12
 
 
13
# Build a shared library containing our scope code.
 
14
add_library(
 
15
  scope SHARED
 
16
  ${SCOPE_SOURCES}
 
17
)
 
18
 
 
19
# Link against the object library and our external library dependencies
 
20
target_link_libraries(
 
21
  scope
 
22
  ${SCOPE_LDFLAGS}
 
23
  Qt5::Core
 
24
)
 
25
 
 
26
 
 
27
# Set the correct library output name to conform to the securiry policy 
 
28
set_target_properties(
 
29
  scope
 
30
  PROPERTIES
 
31
    OUTPUT_NAME "${SCOPE_NAME}"
 
32
)
 
33
 
 
34
# Install the scope shared library
 
35
install(
 
36
  TARGETS scope
 
37
  LIBRARY DESTINATION ${SCOPE_INSTALL_DIR}
 
38
)
 
39