mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-23 12:22:30 +00:00
- added ability to build static libraries
Dynamic libraries are still built by default
This commit is contained in:
parent
55921d0d34
commit
edd802e655
3 changed files with 5 additions and 9 deletions
|
@ -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 )
|
||||
|
|
2
thirdparty/game-music-emu/CMakeLists.txt
vendored
2
thirdparty/game-music-emu/CMakeLists.txt
vendored
|
@ -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.
|
||||
|
|
4
thirdparty/zlib/CMakeLists.txt
vendored
4
thirdparty/zlib/CMakeLists.txt
vendored
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue