-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
25 lines (21 loc) · 883 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
set(KATHERINEXX_HEADERS
"include/katherinexx/acquisition.hpp"
"include/katherinexx/config.hpp"
"include/katherinexx/device.hpp"
"include/katherinexx/error.hpp"
"include/katherinexx/katherinexx.hpp"
"include/katherinexx/px_config.hpp"
)
add_library(katherinexx INTERFACE)
target_link_libraries(katherinexx INTERFACE katherine)
target_include_directories(katherinexx
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/katherinexx.pc.in katherinexx.pc @ONLY)
install(FILES ${KATHERINEXX_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/katherinexx)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/katherinexx.pc DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/pkgconfig)
if(BUILD_EXAMPLES)
add_subdirectory(examples)
endif(BUILD_EXAMPLES)