clean up indentation and spacing
[supercollider.git] / testsuite / supernova / CMakeLists.txt
bloba5fc6f21ea37f9dff5d3e290797de7fc9ea99d5c
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()
37 find_package(Sndfile REQUIRED)
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                                         ${SNDFILE_INCLUDE_DIR}
52                     )
55 add_library(boost_test STATIC boost_test.cpp)
57 # run simple tests
58 foreach(test ${simple_tests})
59   string(REPLACE .cpp "" test_name ${test} )
60   add_executable(${test_name} ${test})
61   target_link_libraries(${test_name} boost_thread boost_system boost_test)
62   target_link_libraries(${test_name} oscpack tlsf)
63   target_link_libraries(${test_name} ${PTHREADS_LIBRARY})
64   target_link_libraries(${test_name} ${SNDFILE_LIBRARIES})
65   target_link_libraries(${test_name} libsupernova)
67   if(APPLE)
68     target_link_libraries(${test_name} "-framework CoreAudio")
69   endif()
71   add_test(${test_name}_run ${EXECUTABLE_OUTPUT_PATH}/${test_name})
72 endforeach(test)
74 set_property(TARGET server_test
75              APPEND
76              PROPERTY COMPILE_DEFINITIONS JACK_BACKEND SUPERNOVA)