blob: 1df98073f64051c9e9611ffb6cbe5ee423f3c47f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
project(libwolff LANGUAGES C CXX)
add_library(wolff SHARED src/graph.cpp)
target_include_directories(wolff PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
install(TARGETS wolff EXPORT wolffConfig
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|