Skip to content

Commit

Permalink
Added CMake Install
Browse files Browse the repository at this point in the history
Signed-off-by: ZigRazor <zigrazor@gmail.com>
  • Loading branch information
ZigRazor committed May 21, 2024
1 parent 6a76ac7 commit e434a52
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ target_sources ( ${PROJECT_NAME} INTERFACE ${HEADERS_FILES} )
target_compile_features( ${PROJECT_NAME} INTERFACE cxx_std_20 )
target_include_directories( ${PROJECT_NAME} INTERFACE include/ )

set_target_properties( ${PROJECT_NAME} PROPERTIES PUBLIC_HEADER "${HEADERS_FILES}")

install(TARGETS ${PROJECT_NAME} PUBLIC_HEADER
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/DogBreeds/Labrador)

option(LABRADOR_TEST "Enable Test" OFF)
if(TEST)
enable_testing()
Expand Down

0 comments on commit e434a52

Please sign in to comment.