Install headers.
This commit is contained in:
parent
59778f0d75
commit
94dd5f605d
|
@ -30,6 +30,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
include(debug_flags)
|
include(debug_flags)
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
add_subdirectory(include)
|
||||||
|
|
||||||
if(WITH_TESTS)
|
if(WITH_TESTS)
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|
|
@ -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…
Reference in New Issue