diff --git a/CMakeLists.txt b/CMakeLists.txt index 128da29ab49d278427f76aec16724357d9ed7ccc..9ad0c6ea481c2a2c685be7b4cc29930ec7613514 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,8 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") option(BUILD_TESTING "Build the test suite" OFF) option(BUILD_DOCUMENTATION "Build the documentation" OFF) +install(DIRECTORY include DESTINATION .) + add_subdirectory(src) if(BUILD_TESTING) diff --git a/src/lib/CMakeLists.txt b/src/lib/CMakeLists.txt index 12d1fe1693104f52b16701c900a6dd9043b1928b..533dc1c97474fceaa4d4efafed29bdaeb8aac6c7 100644 --- a/src/lib/CMakeLists.txt +++ b/src/lib/CMakeLists.txt @@ -4,3 +4,5 @@ add_library(hello SHARED hello.cpp) target_include_directories(hello PUBLIC "${CMAKE_SOURCE_DIR}/include") + +install(TARGETS hello)