Browse Source

Merge pull request #85 from schdro/feature-export-includepath

Export include path (argtable3.h) via CMake module
pull/87/head
Tom G. Huang 1 year ago
committed by GitHub
parent
commit
55c4f6285e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/CMakeLists.txt

6
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
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCEDIR}>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
)
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"

Loading…
Cancel
Save