forked from projectM-visualizer/projectm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
35 lines (29 loc) · 987 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
35 lines (29 loc) · 987 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
find_package(GTest 1.10 REQUIRED NO_MODULE)
add_executable(projectM-unittest
WaveformAlignerTest.cpp
PresetFileParserTest.cpp
MilkdropShaderCommentParsingTest.cpp
$<TARGET_OBJECTS:Audio>
$<TARGET_OBJECTS:MilkdropPreset>
$<TARGET_OBJECTS:Renderer>
$<TARGET_OBJECTS:hlslparser>
$<TARGET_OBJECTS:SOIL2>
$<TARGET_OBJECTS:projectM_main>
)
target_compile_definitions(projectM-unittest
PRIVATE
PROJECTM_TEST_DATA_DIR="${CMAKE_CURRENT_LIST_DIR}/data"
)
# Test includes a header file from libprojectM with its full path in the source dir.
target_include_directories(projectM-unittest
PRIVATE
"${PROJECTM_SOURCE_DIR}/src/libprojectM"
"${PROJECTM_SOURCE_DIR}"
)
target_link_libraries(projectM-unittest
PRIVATE
projectM_main
GTest::gtest
GTest::gtest_main
)
add_test(NAME projectM-unittest COMMAND projectM-unittest)