Fix #267 'SQLiteCpp/SQLiteCpp.h' file not found

Issue introduced by Commit a166062c Significantly improved support for external sqlite3, and generalized thread and dl libs on Unix/Linux/Mac
This commit is contained in:
Sébastien Rombauts 2020-01-29 21:57:43 +01:00
parent ffc1a3ef65
commit 76bd3b2f54

View File

@ -252,6 +252,9 @@ install(TARGETS SQLiteCpp
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT libraries)
target_include_directories(SQLiteCpp PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/>)
install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT headers FILES_MATCHING REGEX ".*\\.(hpp|h)$")
install(EXPORT ${PROJECT_NAME}Targets DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})