2024-08-24 00:34:26 +10:00
|
|
|
|
|
|
|
cmake_minimum_required(VERSION 3.30)
|
|
|
|
|
|
|
|
project(midi-parser)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 26)
|
|
|
|
set(CMAKE_CXX_FLAGS "-g")
|
|
|
|
|
|
|
|
set(SRCS
|
2024-08-25 16:53:43 +10:00
|
|
|
src/packet.cpp
|
2024-08-26 13:02:53 +10:00
|
|
|
src/binary.cpp
|
2024-08-25 16:53:43 +10:00
|
|
|
src/scheduler.cpp
|
2024-08-24 00:34:26 +10:00
|
|
|
src/key.cpp
|
2024-08-26 13:02:53 +10:00
|
|
|
src/device.cpp
|
2024-10-04 19:01:15 +10:00
|
|
|
src/song_info.cpp
|
2024-08-24 00:34:26 +10:00
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(midifile)
|
2024-08-26 13:02:53 +10:00
|
|
|
add_executable(parser src/parser.cpp ${SRCS})
|
|
|
|
add_executable(streamer src/streamer.cpp ${SRCS})
|
2024-08-24 00:34:26 +10:00
|
|
|
|
2024-10-04 19:01:15 +10:00
|
|
|
target_link_libraries(parser PRIVATE midifile PUBLIC stdc++ ncurses)
|
|
|
|
target_link_libraries(streamer PRIVATE midifile PUBLIC stdc++ ncurses)
|
2024-08-24 00:34:26 +10:00
|
|
|
|