27 lines
No EOL
904 B
CMake
27 lines
No EOL
904 B
CMake
add_library(test_utils SHARED
|
|
test_utils/TestCase.h
|
|
test_utils/TestCaseRunner.cpp
|
|
)
|
|
|
|
target_include_directories(test_utils PUBLIC
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/test_utils"
|
|
)
|
|
|
|
list(APPEND TestFiles
|
|
audio/TestAudioWriter.cpp
|
|
audio/TestMidiReader.cpp
|
|
graphics/TestOpenGlRendering.cpp)
|
|
|
|
list(APPEND TestNames
|
|
TestAudioWriter
|
|
TestMidiReader
|
|
TestOpenGlRendering)
|
|
|
|
foreach(TestFile TestName IN ZIP_LISTS TestFiles TestNames)
|
|
add_executable(${TestName} ${TestFile})
|
|
target_link_libraries(${TestName} PUBLIC core network database geometry audio graphics web client test_utils)
|
|
endforeach()
|
|
|
|
|
|
add_executable(test_runner test_runner.cpp)
|
|
target_link_libraries(test_runner PUBLIC core network database geometry audio graphics web client) |