Install headers.
This commit is contained in:
parent
59778f0d75
commit
94dd5f605d
@ -30,6 +30,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
include(debug_flags)
|
||||
|
||||
add_subdirectory(src)
|
||||
add_subdirectory(include)
|
||||
|
||||
if(WITH_TESTS)
|
||||
add_subdirectory(tests)
|
||||
|
6
include/CMakeLists.txt
Normal file
6
include/CMakeLists.txt
Normal file
@ -0,0 +1,6 @@
|
||||
include(GNUInstallDirs)
|
||||
|
||||
# The trailing / is important.
|
||||
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
|
||||
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}"
|
||||
FILES_MATCHING PATTERN "*.hpp")
|
Loading…
x
Reference in New Issue
Block a user