1
find_package(Qt5Network REQUIRED)
2
find_package(Qt5Core REQUIRED)
3
find_package(Qt5Xml REQUIRED)
5
include_directories(${Qt5Core_INCLUDE_DIRS})
6
include_directories(${Qt5Network_INCLUDE_DIRS})
7
include_directories(${Qt5Xml_INCLUDE_DIRS})
9
# Put the ini file in the build directory next to the scope
10
# .so file so test tools can find both easily.
12
"${CMAKE_SOURCE_DIR}/data/${PACKAGE_NAME}.${SCOPE_NAME}_${SCOPE_NAME}.ini"
13
"${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}.${SCOPE_NAME}_${SCOPE_NAME}.ini"
18
"${CMAKE_SOURCE_DIR}/data/logo.png"
19
"${CMAKE_CURRENT_BINARY_DIR}/logo.png"
24
# The sources to build the scope
32
# Find all the headers
35
"${CMAKE_SOURCE_DIR}/include/*.h"
38
# Build an object library for the scope code
45
# Ensure we export all the symbols
46
set_target_properties(
49
LINK_FLAGS "-Wl,--export-all-symbols"
52
# Build a shared library containing our scope code.
53
# This will be the actual plugin that is loaded.
56
$<TARGET_OBJECTS:scope-static>
59
# Link against the object library and our external library dependencies
60
target_link_libraries(
66
qt5_use_modules(scope Core Xml Network)
68
# Set the correct library output name to conform to the securiry policy
69
set_target_properties(
72
OUTPUT_NAME "${PACKAGE_NAME}.${SCOPE_NAME}_${SCOPE_NAME}"
75
# Install the scope shared library
78
LIBRARY DESTINATION ${SCOPE_INSTALL_DIR}/${TOOLCHAIN_PREFIX}