2
# Put the ini file in the build directory next to the scope
3
# .so file so test tools can find both easily.
4
intltool_merge_translations(
5
"${CMAKE_SOURCE_DIR}/data/${SCOPE_NAME}.ini.in"
6
"${CMAKE_CURRENT_BINARY_DIR}/${SCOPE_NAME}.ini"
11
# Install the scope ini file
13
FILES "${CMAKE_CURRENT_BINARY_DIR}/${SCOPE_NAME}.ini"
14
DESTINATION ${SCOPE_INSTALL_DIR}
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(
71
# Set the correct library output name to conform to the securiry policy
72
set_target_properties(
75
OUTPUT_NAME "${SCOPE_NAME}"
78
# Install the scope shared library
81
LIBRARY DESTINATION ${SCOPE_INSTALL_DIR}