midi-parser/CMakeLists.txt

25 lines
491 B
CMake

cmake_minimum_required(VERSION 3.30)
project(midi-parser)
set(CMAKE_CXX_STANDARD 26)
set(CMAKE_CXX_FLAGS "-g")
set(SRCS
src/packet.cpp
src/binary.cpp
src/scheduler.cpp
src/key.cpp
src/device.cpp
src/song_info.cpp
)
add_subdirectory(midifile)
add_executable(parser src/parser.cpp ${SRCS})
add_executable(streamer src/streamer.cpp ${SRCS})
target_link_libraries(parser PRIVATE midifile PUBLIC stdc++ ncurses)
target_link_libraries(streamer PRIVATE midifile PUBLIC stdc++ ncurses)