diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2e0b519..5fb1404 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -77,7 +77,10 @@ else() endif() add_library(${ARGTABLE3_PROJECT_NAME}::argtable3 ALIAS argtable3) -target_include_directories(argtable3 PRIVATE ${PROJECT_SOURCE_DIR}/src) +target_include_directories(argtable3 PUBLIC + "$" + "$" +) set_target_properties(argtable3 PROPERTIES VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH} @@ -98,6 +101,7 @@ install(TARGETS argtable3 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) install(FILES "${PROJECT_SOURCE_DIR}/src/argtable3.h"