aboutsummaryrefslogtreecommitdiff
path: root/libs/usvfs/test/usvfs_test_runner/CMakeLists.txt
blob: a0a7ca92286f1630a5c11c111efeb06312851371 (plain)
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
cmake_minimum_required(VERSION 3.16)

find_package(GTest CONFIG REQUIRED)

# other executables
add_executable(test_file_operations
    test_file_operations/test_file_operations.cpp
    test_file_operations/test_filesystem.cpp
    test_file_operations/test_filesystem.h
    test_file_operations/test_ntapi.cpp
    test_file_operations/test_ntapi.h
    test_file_operations/test_ntdll_declarations.h
    test_file_operations/test_w32api.cpp
    test_file_operations/test_w32api.h
)
usvfs_set_test_properties(test_file_operations FOLDER usvfs_test_runner)
target_link_libraries(test_file_operations PRIVATE test_utils ntdll)

add_executable(usvfs_test
    usvfs_test/usvfs_basic_test.cpp
    usvfs_test/usvfs_basic_test.h
    usvfs_test/usvfs_test_base.cpp
    usvfs_test/usvfs_test_base.h
    usvfs_test/usvfs_test.cpp
)
usvfs_set_test_properties(usvfs_test FOLDER usvfs_test_runner)
usvfs_target_link_usvfs(usvfs_test)
target_link_libraries(usvfs_test PRIVATE test_utils)

# actual test executable
add_executable(usvfs_test_runner usvfs_test_runner.cpp)
usvfs_set_test_properties(usvfs_test_runner FOLDER usvfs_test_runner)
target_link_libraries(usvfs_test_runner
    PRIVATE test_utils GTest::gtest GTest::gtest_main)
add_dependencies(usvfs_test_runner usvfs_test test_file_operations)