mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-03 01:13:22 +00:00
84cc7cbdd2
This is to improve compile times because the MSVC compiler tends to become slow with large lists of source files in a single project. This new project is still our stripped down copy of libadl, not the original, because that project contains a large amount of baggage we do not need.
28 lines
650 B
CMake
28 lines
650 B
CMake
cmake_minimum_required( VERSION 2.8.7 )
|
|
|
|
make_release_only()
|
|
|
|
add_definitions(-DADLMIDI_DISABLE_MIDI_SEQUENCER)
|
|
|
|
if( ZD_CMAKE_COMPILER_IS_GNUC_COMPATIBLE )
|
|
set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fomit-frame-pointer" )
|
|
endif()
|
|
|
|
set (CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ${ZD_FASTMATH_FLAG})
|
|
|
|
add_library( adl STATIC
|
|
adldata.cpp
|
|
adlmidi.cpp
|
|
adlmidi_load.cpp
|
|
adlmidi_midiplay.cpp
|
|
adlmidi_opl3.cpp
|
|
adlmidi_private.cpp
|
|
chips/dosbox/dbopl.cpp
|
|
chips/dosbox_opl3.cpp
|
|
chips/nuked/nukedopl3_174.c
|
|
chips/nuked/nukedopl3.c
|
|
chips/nuked_opl3.cpp
|
|
chips/nuked_opl3_v174.cpp
|
|
wopl/wopl_file.c
|
|
)
|
|
target_link_libraries( adl )
|