- added ability to build static libraries

Dynamic libraries are still built by default
This commit is contained in:
alexey.lysiuk 2020-02-09 12:16:10 +02:00
parent 55921d0d34
commit edd802e655
3 changed files with 5 additions and 9 deletions

View file

@ -122,9 +122,11 @@ set( all_files
loader/test.c
${PLAT_SOURCES}
)
add_library( zmusic SHARED ${all_files} )
add_library( zmusiclite SHARED ${all_files} )
option( BUILD_SHARED_LIBS "Build shared libraries" ON )
add_library( zmusic ${all_files} )
add_library( zmusiclite ${all_files} )
target_compile_definitions(zmusiclite PRIVATE ZMUSIC_LITE=1)
if( MSVC )

View file

@ -86,8 +86,6 @@ use_fast_math()
SET(USE_GME_NSF 1 CACHE BOOL "Enable NES NSF music emulation" FORCE)
#endif()
# [ZDoom] Set always to OFF.
set(BUILD_SHARED_LIBS OFF)
set(ENABLE_UBSAN OFF)
# Check for GCC/Clang "visibility" support.

View file

@ -7,10 +7,6 @@ project(zlib C)
set(VERSION "1.2.7")
if(NOT DEFINED BUILD_SHARED_LIBS)
option(BUILD_SHARED_LIBS "Build a shared library form of zlib" OFF)
endif()
set(ZLIBNAME z)
include(CheckTypeSize)