class library: Reset has been renamed to OnError
[supercollider.git] / testsuite / supernova / CMakeLists.txt
blob0355a9b3ed0ca00438804461d61c75d6b157a4a4
1 set(simple_tests
2     approximation_test.cpp
3     buffer_manager_test.cpp
4     callback_interpreter_system.cpp
5     memory-pool_test.cpp
6     osc_dispatcher_test.cpp
7     osc_server_test.cpp
8     server_dsp_thread_queue_test.cpp
9     server_dsp_thread_test.cpp
10     server_node_graph_test.cpp
11     server_scheduler_test.cpp
12     server_synth_factory_test.cpp
13     server_test.cpp
14     simple_pool_test.cpp
15     sized_array_test.cpp
16     sndfile_backend_test.cpp
17     static_pool_test.cpp
18     ticket_scheduler_test.cpp
19     timetag_test.cpp
22 if(!APPLE)
23     set(simple_tests
24         ${simple_tests}
25         static_allocator_test.cpp
26         tl_allocator_test.cpp
27     )
28 endif()
30 if (CMAKE_SYSTEM_NAME MATCHES "Linux")
31     set(simple_tests ${simple_tests}
32         perf_counter_test.cpp
33     )
34 endif()
39 include_directories(${CMAKE_SOURCE_DIR}/include/common
40                     ${CMAKE_SOURCE_DIR}/include/plugin_interface
41                     ${CMAKE_SOURCE_DIR}/include/server
42                     ${CMAKE_SOURCE_DIR}/server/supernova
43                     ${CMAKE_SOURCE_DIR}/external_libraries/boost
44                     ${CMAKE_SOURCE_DIR}/external_libraries/boost_endian
45                     ${CMAKE_SOURCE_DIR}/external_libraries/boost_lockfree
46                     ${CMAKE_SOURCE_DIR}/external_libraries/boost_move
47                     ${CMAKE_SOURCE_DIR}/external_libraries/oscpack
48                     ${CMAKE_SOURCE_DIR}/external_libraries/
49                     ${CMAKE_SOURCE_DIR}/external_libraries/nova-tt
50                     ${CMAKE_SOURCE_DIR}/external_libraries/TLSF-2.4.6/src
51                     )
54 add_library(boost_test STATIC boost_test.cpp)
56 # run simple tests
57 foreach(test ${simple_tests})
58   string(REPLACE .cpp "" test_name ${test} )
59   add_executable(${test_name} ${test})
60   target_link_libraries(${test_name} boost_thread boost_system boost_test)
61   target_link_libraries(${test_name} oscpack tlsf)
62   target_link_libraries(${test_name} ${PTHREADS_LIBRARY})
63   target_link_libraries(${test_name} ${SNDFILE})
64   target_link_libraries(${test_name} libsupernova)
66   if(APPLE)
67     target_link_libraries(${test_name} "-framework CoreAudio")
68   endif()
70   add_test(${test_name}_run ${EXECUTABLE_OUTPUT_PATH}/${test_name})
71 endforeach(test)
73 set_property(TARGET server_test
74              APPEND
75              PROPERTY COMPILE_DEFINITIONS JACK_BACKEND SUPERNOVA)