From 8703d606af608a32cb2099e0a11b1898c7f55801 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Sat, 3 Apr 2021 19:12:53 -0500 Subject: [PATCH] Update install targets --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 470bd18..2801a6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()