Clean project structure.

This commit is contained in:
jmsgrogan 2023-01-17 10:13:25 +00:00
parent 78a4fa99ff
commit 947bf937fd
496 changed files with 206 additions and 137 deletions

View file

@ -0,0 +1,8 @@
list(APPEND UNIT_TEST_FILES
TestMidiReader.cpp
)
add_executable(music_unit_tests ${CMAKE_SOURCE_DIR}/test/test_runner.cpp ${UNIT_TEST_FILES})
target_link_libraries(music_unit_tests PUBLIC test_utils music)
set_property(TARGET music_unit_tests PROPERTY FOLDER plugins)

View file

@ -0,0 +1,12 @@
#include "MidiReader.h"
#include "TestFramework.h"
#include "TestUtils.h"
TEST_CASE(TestReadMidi, "audio")
{
MidiReader reader;
reader.read(TestUtils::getTestDataDir() / "test.mid");
auto document = reader.getDocument();
};