summaryrefslogtreecommitdiff
path: root/lib/CMakeLists.txt
blob: a31500ea725a3b68a175810e95d47d1d737e661d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

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})

install(EXPORT wolffConfig DESTINATION share/wolff/cmake)

export(TARGETS wolff FILE wolffConfig.cmake)