Build static libraries

This commit is contained in:
Dane Johnson
2021-03-16 13:33:49 -05:00
parent 6a6c881e49
commit c32f978fc0
6 changed files with 36 additions and 23 deletions

View File

@@ -16,7 +16,7 @@ if (LUA_ENABLED)
find_package(Lua REQUIRED)
endif ()
add_library(couchlib SHARED)
add_library(couchlib STATIC)
target_sources(couchlib PUBLIC
Camera.h
Camera.cpp
@@ -69,11 +69,8 @@ target_sources(couchlib PUBLIC
Shaders/SkyboxShader.cpp)
if (WIN32)
add_library(couchlib_luascripting STATIC)
else ()
add_library(couchlib_luascripting SHARED)
endif ()
add_library(couchlib_luascripting STATIC)
target_sources(couchlib_luascripting PUBLIC
Scripting/Lua.h
Scripting/Lua.cpp)