aboutsummaryrefslogtreecommitdiff
path: root/osc.lv2/CMakeLists.txt
blob: 64ce73bb727fe601f01312452ebd29db46a1718f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()