diff options
| author | Charles Barto <bartoc@umich.edu> | 2016-10-19 00:37:33 -0400 |
|---|---|---|
| committer | Charles Barto <bartoc@umich.edu> | 2016-10-19 00:37:33 -0400 |
| commit | 284d50c186dceb788a32e74e486521d7e2bbb1f6 (patch) | |
| tree | 6664eb443b5cac97cb20a14ab92f72401a9108de | |
| parent | 035952b2424e0115908821489495b0e8e501f83a (diff) | |
| download | vcpkg-284d50c186dceb788a32e74e486521d7e2bbb1f6.tar.gz vcpkg-284d50c186dceb788a32e74e486521d7e2bbb1f6.zip | |
added a config file for sqlite
| -rw-r--r-- | ports/sqlite3/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | ports/sqlite3/portfile.cmake | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ports/sqlite3/CMakeLists.txt b/ports/sqlite3/CMakeLists.txt index 7dc7920e4..8c1e7e787 100644 --- a/ports/sqlite3/CMakeLists.txt +++ b/ports/sqlite3/CMakeLists.txt @@ -16,13 +16,15 @@ target_compile_definitions(sqlite3 PRIVATE -DSQLITE_ENABLE_RTREE -DSQLITE_ENABLE_UNLOCK_NOTIFY ) +target_include_directories(sqlite3 INTERFACE $<INSTALL_INTERFACE>:include>) if(TRIPLET_SYSTEM_NAME MATCHES "WindowsStore") target_compile_definitions(sqlite3 PRIVATE -DSQLITE_OS_WINRT=1) endif() -install(TARGETS sqlite3 +install(TARGETS sqlite3 EXPORT sqlite3Config RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib ) install(FILES ${SOURCE}/sqlite3.h ${SOURCE}/sqlite3ext.h DESTINATION include CONFIGURATIONS Release) +install(EXPORT sqlite3Config DESTINATION share/sqlite3)
\ No newline at end of file diff --git a/ports/sqlite3/portfile.cmake b/ports/sqlite3/portfile.cmake index ac3e6646b..a7999b68c 100644 --- a/ports/sqlite3/portfile.cmake +++ b/ports/sqlite3/portfile.cmake @@ -18,5 +18,11 @@ vcpkg_configure_cmake( vcpkg_build_cmake() vcpkg_install_cmake() +file(READ ${CURRENT_PACKAGES_DIR}/debug/share/sqlite3/sqlite3Config-debug.cmake SQLITE3_DEBUG_CONFIG) +string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" SQLITE3_DEBUG_CONFIG "${SQLITE3_DEBUG_CONFIG}") +file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/sqlite3Config-debug.cmake "${SQLITE3_DEBUG_CONFIG}") + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) + file(WRITE ${CURRENT_PACKAGES_DIR}/share/sqlite3/copyright "SQLite is in the Public Domain.\nhttp://www.sqlite.org/copyright.html\n") vcpkg_copy_pdbs() |
