shithub: choc

Download patch

ref: 42b80fe839535f4f477ff91e300bf06fc7cdc711
parent: d6cb093e4cac91908b6aa3f9944104e0220720c9
author: Alex Mayfield <alexmax2742@gmail.com>
date: Tue May 22 17:05:09 EDT 2018

Add midiread and mus2mid targets

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -197,3 +197,13 @@
     set_target_properties("${PROGRAM_PREFIX}setup" PROPERTIES
                           LINK_FLAGS "/MANIFEST:NO")
 endif()
+
+add_executable(midiread midifile.c z_native.c i_system.c m_argv.c m_misc.c)
+target_compile_definitions(midiread PRIVATE "-DTEST")
+target_include_directories(midiread PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
+target_link_libraries(midiread PRIVATE SDL2::SDL2)
+
+add_executable(mus2mid mus2mid.c memio.c z_native.c i_system.c m_argv.c m_misc.c)
+target_compile_definitions(mus2mid PRIVATE "-DSTANDALONE")
+target_include_directories(mus2mid PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/../")
+target_link_libraries(mus2mid PRIVATE SDL2::SDL2)