CMakeLists.txt 4.57 KB
Newer Older
Pascal Palenda's avatar
Pascal Palenda committed
1
cmake_minimum_required (VERSION 3.14 FATAL_ERROR)
Jonas Stienen's avatar
Jonas Stienen committed
2

Pascal Palenda's avatar
Pascal Palenda committed
3
project (ITABaseTests)
Jonas Stienen's avatar
Jonas Stienen committed
4

Pascal Palenda's avatar
Pascal Palenda committed
5
# ######################################################################################################################
Jonas Stienen's avatar
Jonas Stienen committed
6

Pascal Palenda's avatar
Pascal Palenda committed
7
8
add_executable (ITAStringUtilsTest ITAStringUtilsTest.cpp)
target_link_libraries (ITAStringUtilsTest PUBLIC ITABase::ITABase)
9

Pascal Palenda's avatar
Pascal Palenda committed
10
set_property (TARGET ITAStringUtilsTest PROPERTY FOLDER "Tests/ITABase")
11

Pascal Palenda's avatar
Pascal Palenda committed
12
install (TARGETS ITAStringUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
13

Pascal Palenda's avatar
Pascal Palenda committed
14
# ######################################################################################################################
Jonas Stienen's avatar
Jonas Stienen committed
15

Pascal Palenda's avatar
Pascal Palenda committed
16
17
add_executable (ConfigUtilsTest ConfigUtilsTest.cpp)
target_link_libraries (ConfigUtilsTest PUBLIC ITABase::ITABase)
Pascal Palenda's avatar
Pascal Palenda committed
18

Pascal Palenda's avatar
Pascal Palenda committed
19
set_property (TARGET ConfigUtilsTest PROPERTY FOLDER "Tests/ITABase")
Pascal Palenda's avatar
Pascal Palenda committed
20

Pascal Palenda's avatar
Pascal Palenda committed
21
install (TARGETS ConfigUtilsTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
22

Pascal Palenda's avatar
Pascal Palenda committed
23
24
configure_file (${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini ${CMAKE_BINARY_DIR}/bin/ConfigUtilsTest.ini COPYONLY)
install (FILES ${CMAKE_CURRENT_LIST_DIR}/ConfigUtilsTest.ini TYPE BIN)
25

Pascal Palenda's avatar
Pascal Palenda committed
26
# ######################################################################################################################
27

Pascal Palenda's avatar
Pascal Palenda committed
28
29
add_executable (AttenuationISO9613Test AttenuationISO9613Test.cpp)
target_link_libraries (AttenuationISO9613Test PUBLIC ITABase::ITABase)
30

Pascal Palenda's avatar
Pascal Palenda committed
31
set_property (TARGET AttenuationISO9613Test PROPERTY FOLDER "Tests/ITABase")
32

Pascal Palenda's avatar
Pascal Palenda committed
33
install (TARGETS AttenuationISO9613Test RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
34

Pascal Palenda's avatar
Pascal Palenda committed
35
# ######################################################################################################################
36

Pascal Palenda's avatar
Pascal Palenda committed
37
38
add_executable (ITABaseSampleBufferTest ITABaseSampleBufferTest.cpp)
target_link_libraries (ITABaseSampleBufferTest PUBLIC ITABase::ITABase)
Jonas Stienen's avatar
Jonas Stienen committed
39

Pascal Palenda's avatar
Pascal Palenda committed
40
set_property (TARGET ITABaseSampleBufferTest PROPERTY FOLDER "Tests/ITABase")
Jonas Stienen's avatar
Jonas Stienen committed
41

Pascal Palenda's avatar
Pascal Palenda committed
42
install (TARGETS ITABaseSampleBufferTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Pascal Palenda's avatar
Pascal Palenda committed
43

Pascal Palenda's avatar
Pascal Palenda committed
44
# ######################################################################################################################
45

Pascal Palenda's avatar
Pascal Palenda committed
46
if (ITA_BASE_WITH_SNDFILE)
47

Pascal Palenda's avatar
Pascal Palenda committed
48
49
	add_executable (ITABaseSampleFrameTest ITABaseSampleFrameTest.cpp)
	target_link_libraries (ITABaseSampleFrameTest PUBLIC ITABase::ITABase)
50

Pascal Palenda's avatar
Pascal Palenda committed
51
	set_property (TARGET ITABaseSampleFrameTest PROPERTY FOLDER "Tests/ITABase")
52

Pascal Palenda's avatar
Pascal Palenda committed
53
	install (TARGETS ITABaseSampleFrameTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
54

Pascal Palenda's avatar
Pascal Palenda committed
55
endif ()
56

Pascal Palenda's avatar
Pascal Palenda committed
57
# ######################################################################################################################
58

Pascal Palenda's avatar
Pascal Palenda committed
59
if (ITA_BASE_WITH_SAMPLERATE)
60

Pascal Palenda's avatar
Pascal Palenda committed
61
62
	add_executable (ITABaseAudioSampleTest ITABaseAudioSampleTest.cpp)
	target_link_libraries (ITABaseAudioSampleTest PUBLIC ITABase::ITABase)
63

Pascal Palenda's avatar
Pascal Palenda committed
64
	set_property (TARGET ITABaseAudioSampleTest PROPERTY FOLDER "Tests/ITABase")
65

Pascal Palenda's avatar
Pascal Palenda committed
66
	install (TARGETS ITABaseAudioSampleTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
67

Pascal Palenda's avatar
Pascal Palenda committed
68
endif ()
69

Pascal Palenda's avatar
Pascal Palenda committed
70
# ######################################################################################################################
71

Pascal Palenda's avatar
Pascal Palenda committed
72
73
add_executable (ITABaseSpectrumTests ITABaseSpectrumTests.cpp)
target_link_libraries (ITABaseSpectrumTests PUBLIC ITABase::ITABase)
74

Pascal Palenda's avatar
Pascal Palenda committed
75
set_property (TARGET ITABaseSpectrumTests PROPERTY FOLDER "Tests/ITABase")
Philipp Schäfer's avatar
Splines    
Philipp Schäfer committed
76

Pascal Palenda's avatar
Pascal Palenda committed
77
install (TARGETS ITABaseSpectrumTests RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
Philipp Schäfer's avatar
Splines    
Philipp Schäfer committed
78

Pascal Palenda's avatar
Pascal Palenda committed
79
# ######################################################################################################################
Philipp Schäfer's avatar
Splines    
Philipp Schäfer committed
80

Pascal Palenda's avatar
Pascal Palenda committed
81
82
83
84
85
86
87
add_executable (SplineTest SplineTest.cpp)
target_link_libraries (SplineTest PUBLIC ITABase::ITABase)

set_property (TARGET SplineTest PROPERTY FOLDER "Tests/ITABase")

install (TARGETS SplineTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

88
89
90
91
92
93
94
95
96
# ######################################################################################################################

if (ITA_BASE_WITH_JSON_SUPPORT)
	add_executable (ITABaseUtilsJSONTest ITABaseUtilsJSONTest.cpp)
	target_link_libraries (ITABaseUtilsJSONTest PUBLIC ITABase::ITABase)

	set_property (TARGET ITABaseUtilsJSONTest PROPERTY FOLDER "Tests/ITABase")

	install (TARGETS ITABaseUtilsJSONTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
97
98
99
100
101
102
103
104
105
	
# ######################################################################################################################
	
	add_executable (ITABaseProfilerJSONTest ITABaseProfilerJSONTest.cpp)
	target_link_libraries (ITABaseProfilerJSONTest PUBLIC ITABase::ITABase)

	set_property (TARGET ITABaseProfilerJSONTest PROPERTY FOLDER "Tests/ITABase")

	install (TARGETS ITABaseProfilerJSONTest RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
106
107
108
109
endif ()

# ######################################################################################################################

Pascal Palenda's avatar
Pascal Palenda committed
110
add_subdirectory (VistaTests)