mirror of
https://github.com/ZDoom/ZMusic.git
synced 2024-11-23 20:32:14 +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
|
loader/test.c
|
||||||
${PLAT_SOURCES}
|
${PLAT_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library( zmusic SHARED ${all_files} )
|
option( BUILD_SHARED_LIBS "Build shared libraries" ON )
|
||||||
add_library( zmusiclite SHARED ${all_files} )
|
|
||||||
|
add_library( zmusic ${all_files} )
|
||||||
|
add_library( zmusiclite ${all_files} )
|
||||||
target_compile_definitions(zmusiclite PRIVATE ZMUSIC_LITE=1)
|
target_compile_definitions(zmusiclite PRIVATE ZMUSIC_LITE=1)
|
||||||
|
|
||||||
if( MSVC )
|
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)
|
SET(USE_GME_NSF 1 CACHE BOOL "Enable NES NSF music emulation" FORCE)
|
||||||
#endif()
|
#endif()
|
||||||
|
|
||||||
# [ZDoom] Set always to OFF.
|
|
||||||
set(BUILD_SHARED_LIBS OFF)
|
|
||||||
set(ENABLE_UBSAN OFF)
|
set(ENABLE_UBSAN OFF)
|
||||||
|
|
||||||
# Check for GCC/Clang "visibility" support.
|
# 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")
|
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)
|
set(ZLIBNAME z)
|
||||||
|
|
||||||
include(CheckTypeSize)
|
include(CheckTypeSize)
|
||||||
|
|
Loading…
Reference in a new issue