From 7a3291d66117b8ad88fe826b57bfa60db8a214af Mon Sep 17 00:00:00 2001 From: Kyle Benne Date: Wed, 7 Jan 2015 14:34:30 -0600 Subject: [PATCH] Install shared sqlite library on unix --- third_party/SQLite/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/third_party/SQLite/CMakeLists.txt b/third_party/SQLite/CMakeLists.txt index 5a38c29ec41..5e4a94e5e65 100644 --- a/third_party/SQLite/CMakeLists.txt +++ b/third_party/SQLite/CMakeLists.txt @@ -20,5 +20,12 @@ if (MSVC) ADD_LIBRARY( sqlite ${SRC} ) else() ADD_LIBRARY( sqlite SHARED ${SRC} ) + + set_target_properties( + sqlite + PROPERTIES + INSTALL_NAME_DIR "@executable_path" + ) + install( TARGETS sqlite DESTINATION ./ ) endif()