commit aebcec00b2dbab0a8c305b2f55f5a31735b08139
Author: Alex Mayfield <alexmax2742@gmail.com>
AuthorDate: Wed May 2 20:20:28 2018 -0400
Commit: Alex Mayfield <alexmax2742@gmail.com>
CommitDate: Wed May 2 20:20:28 2018 -0400
opl and pcsound libraries
---
CMakeLists.txt | 2 ++
opl/CMakeLists.txt | 13 +++++++++++++
pcsound/CMakeLists.txt | 9 +++++++++
3 files changed, 24 insertions(+)
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)