From 25c5d925fb596707a8557c32a7d46ba65173e496 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Wed, 20 Jan 2021 17:37:56 -0600 Subject: [PATCH] Install couch --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 81a744f..e1afffe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ target_link_libraries(couch ${LUA_LIBRARIES}) include(UseSWIG) set_property(SOURCE scripting/couch.i PROPERTY CPLUSPLUS ON) swig_add_library(couchlua - TYPE STATIC + TYPE SHARED LANGUAGE lua SOURCES scripting/couch.i scripting/lua/helpers.i) target_link_libraries(couchlua ${LUA_LIBRARIES}) @@ -46,3 +46,5 @@ if(WIN32) target_link_libraries(couch ssp) set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++") endif(WIN32) + +install(TARGETS couch couchlua)