From aebcec00b2dbab0a8c305b2f55f5a31735b08139 Mon Sep 17 00:00:00 2001 From: Alex Mayfield Date: Wed, 2 May 2018 20:20:28 -0400 Subject: [PATCH] opl and pcsound libraries --- CMakeLists.txt | 2 ++ opl/CMakeLists.txt | 13 +++++++++++++ pcsound/CMakeLists.txt | 9 +++++++++ 3 files changed, 24 insertions(+) create mode 100644 opl/CMakeLists.txt create mode 100644 pcsound/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index d2607108..7bfbb91d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,4 +22,6 @@ set(PROGRAM_PREFIX "${PROGRAM_SPREFIX}-") configure_file(config.cmake.h config.h) add_subdirectory(midiproc) +add_subdirectory(opl) +add_subdirectory(pcsound) add_subdirectory(textscreen) diff --git a/opl/CMakeLists.txt b/opl/CMakeLists.txt new file mode 100644 index 00000000..cd3df7d8 --- /dev/null +++ b/opl/CMakeLists.txt @@ -0,0 +1,13 @@ +add_library(opl STATIC + opl_internal.h + opl.c opl.h + opl_linux.c + opl_obsd.c + opl_queue.c opl_queue.h + opl_sdl.c + opl_timer.c opl_timer.h + opl_win32.c + ioperm_sys.c ioperm_sys.h + opl3.c opl3.h) +target_include_directories(opl PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../") +target_link_libraries(opl SDL2::mixer) diff --git a/pcsound/CMakeLists.txt b/pcsound/CMakeLists.txt new file mode 100644 index 00000000..fe059988 --- /dev/null +++ b/pcsound/CMakeLists.txt @@ -0,0 +1,9 @@ +add_library(pcsound STATIC + pcsound.c pcsound.h + pcsound_bsd.c + pcsound_sdl.c + pcsound_linux.c + pcsound_win32.c + pcsound_internal.h) +target_include_directories(pcsound PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../") +target_link_libraries(pcsound SDL2::mixer)