From 76bd3b2f543453e093bfffa20ea4de75dc169966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Rombauts?= Date: Wed, 29 Jan 2020 21:57:43 +0100 Subject: [PATCH] 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 --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bafc9105..741e941f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,6 +252,9 @@ install(TARGETS SQLiteCpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT libraries) +target_include_directories(SQLiteCpp PUBLIC + $ + $) 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})