aboutsummaryrefslogtreecommitdiff
path: root/test/wopl-file/CMakeLists.txt
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-09-03 08:35:43 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-09-03 08:39:54 +0200
commit273841b7b2442d1909ae8d0233b7097426a1d16c (patch)
tree6e1ef697e208386e2eabab75699c19c138ffe893 /test/wopl-file/CMakeLists.txt
parentce26aee47eba23d1b55a5840f79772c78fd69595 (diff)
downloadlibADLMIDI-273841b7b2442d1909ae8d0233b7097426a1d16c.tar.gz
libADLMIDI-273841b7b2442d1909ae8d0233b7097426a1d16c.tar.bz2
libADLMIDI-273841b7b2442d1909ae8d0233b7097426a1d16c.zip
wopl: bug fix and test
Diffstat (limited to 'test/wopl-file/CMakeLists.txt')
-rw-r--r--test/wopl-file/CMakeLists.txt15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/wopl-file/CMakeLists.txt b/test/wopl-file/CMakeLists.txt
new file mode 100644
index 0000000..082f1fe
--- /dev/null
+++ b/test/wopl-file/CMakeLists.txt
@@ -0,0 +1,15 @@
+
+set(CMAKE_CXX_STANDARD 11)
+
+include_directories (${CMAKE_CURRENT_SOURCE_DIR}/../common
+ ${CMAKE_SOURCE_DIR}/include
+ ${CMAKE_SOURCE_DIR}/src)
+
+add_executable(WoplFile
+ wopl_file.cpp
+ ${libADLMIDI_SOURCE_DIR}/src/wopl/wopl_file.c
+ $<TARGET_OBJECTS:Catch-objects>)
+
+set_target_properties(WoplFile PROPERTIES COMPILE_DEFINITIONS "GSL_THROW_ON_CONTRACT_VIOLATION")
+add_test(NAME WoplFileTest COMMAND WoplFile)
+