aboutsummaryrefslogtreecommitdiff
path: root/osc.lv2/CMakeLists.txt
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-17 15:57:57 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-05-17 15:57:57 +0200
commit75efcc95c461cbdd170760799e033b09260db0bc (patch)
tree628d8f9d74e3adb5942e1d2e86ec5320a41fda9f /osc.lv2/CMakeLists.txt
parent996a62ba83492df0fca88ffd048e02c25fd01094 (diff)
parent346f8c3407d711c19822f9d3fb2c10e24348df84 (diff)
downloadsherlock.lv2-75efcc95c461cbdd170760799e033b09260db0bc.tar.xz
Merge commit '346f8c3407d711c19822f9d3fb2c10e24348df84'
Diffstat (limited to 'osc.lv2/CMakeLists.txt')
-rw-r--r--osc.lv2/CMakeLists.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/osc.lv2/CMakeLists.txt b/osc.lv2/CMakeLists.txt
new file mode 100644
index 0000000..64ce73b
--- /dev/null
+++ b/osc.lv2/CMakeLists.txt
@@ -0,0 +1,16 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(osc.lv2)
+
+include_directories(${PROJECT_SOURCE_DIR})
+
+set(CMAKE_C_FLAGS "-std=gnu11 -Wextra -Wno-unused-parameter -ffast-math -fvisibility=hidden ${CMAKE_C_FLAGS}")
+set(CMAKE_C_FLAGS "-Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes ${CMAKE_C_FLAGS}")
+
+include(CTest)
+
+if(${BUILD_TESTING})
+ add_executable(osc_test
+ osc_test.c)
+ add_test(NAME API-Test COMMAND osc_test)
+endif()