Update install targets

This commit is contained in:
Dane Johnson 2021-04-03 19:12:53 -05:00
parent 6a6c881e49
commit 43dca0e5d1

View File

@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.13)
project(Couch)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/modules" ${CMAKE_MODULE_PATH})
set(CMAKE_CXX_FLAGS_RELEASE -O2)
option(LUA_ENABLED "Lua scripting support" ON)
if (LUA_ENABLED)
add_compile_definitions(LUA_SCRIPTING)
@ -30,7 +32,7 @@ if(WIN32)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
endif(WIN32)
install(TARGETS couch couchlib)
install(TARGETS couch couchlib couchlib_luascripting)
if (LUA_ENABLED)
install(TARGETS couch couchlua)
install(TARGETS couchlua)
endif ()