summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorGravatar bunnei2018-01-18 01:37:17 -0500
committerGravatar GitHub2018-01-18 01:37:17 -0500
commitbe0e14ab3e7b07b5d7879347114428f0beef595f (patch)
tree34521653cd5172d2af45214c3cce1f010842210a /src/tests
parentMerge pull request #91 from lioncash/svc (diff)
parentCMakeLists: Derive the source directory grouping from targets themselves (diff)
downloadyuzu-be0e14ab3e7b07b5d7879347114428f0beef595f.tar.gz
yuzu-be0e14ab3e7b07b5d7879347114428f0beef595f.tar.xz
yuzu-be0e14ab3e7b07b5d7879347114428f0beef595f.zip
Merge pull request #84 from lioncash/cmake
CMakeLists: Derive the source directory grouping from targets themselves
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/CMakeLists.txt26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index 1b8fb2a9f..12f1b93e0 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -1,20 +1,16 @@
1set(SRCS 1add_executable(tests
2 common/param_package.cpp 2 common/param_package.cpp
3 core/arm/arm_test_common.cpp 3 core/arm/arm_test_common.cpp
4 core/core_timing.cpp 4 core/arm/arm_test_common.h
5 core/file_sys/path_parser.cpp 5 core/core_timing.cpp
6 core/memory/memory.cpp 6 core/file_sys/path_parser.cpp
7 glad.cpp 7 core/memory/memory.cpp
8 tests.cpp 8 glad.cpp
9 ) 9 tests.cpp
10)
10 11
11set(HEADERS 12create_target_directory_groups(tests)
12 core/arm/arm_test_common.h
13 )
14 13
15create_directory_groups(${SRCS} ${HEADERS})
16
17add_executable(tests ${SRCS} ${HEADERS})
18target_link_libraries(tests PRIVATE common core) 14target_link_libraries(tests PRIVATE common core)
19target_link_libraries(tests PRIVATE glad) # To support linker work-around 15target_link_libraries(tests PRIVATE glad) # To support linker work-around
20target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} catch-single-include Threads::Threads) 16target_link_libraries(tests PRIVATE ${PLATFORM_LIBRARIES} catch-single-include Threads::Threads)