jak-project/test/CMakeLists.txt

38 lines
1.2 KiB
CMake
Raw Normal View History

2020-08-22 22:30:12 -04:00
add_executable(goalc-test
test_main.cpp
2020-08-29 17:11:49 -04:00
test_test.cpp
test_reader.cpp
test_goos.cpp
test_listener_deci2.cpp
2020-08-22 22:30:12 -04:00
test_kernel.cpp
2020-08-24 00:06:07 -04:00
all_jak1_symbols.cpp
2020-08-29 19:13:29 -04:00
test_type_system.cpp
test_CodeTester.cpp
test_emitter_slow.cpp
2020-08-30 10:56:42 -04:00
test_emitter_loads_and_store.cpp
test_emitter_xmm32.cpp
2020-09-02 16:24:13 -04:00
test_emitter_integer_math.cpp
2020-09-10 17:18:12 -04:00
test_common_util.cpp
test_compiler_and_runtime.cpp
2020-08-29 19:13:29 -04:00
)
2020-08-22 22:30:12 -04:00
2020-09-08 14:39:16 -04:00
enable_testing()
2020-08-22 22:30:12 -04:00
2020-08-26 22:23:16 -04:00
IF (WIN32)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
2020-09-10 17:18:12 -04:00
2020-09-07 19:59:44 -04:00
# TODO - split out these declarations for platform specific includes
target_link_libraries(goalc-test cross_sockets listener mman goos common_util runtime compiler type_system gtest)
2020-08-26 22:23:16 -04:00
ELSE()
target_link_libraries(goalc-test cross_sockets goos common_util listener runtime compiler type_system gtest)
2020-08-26 22:23:16 -04:00
ENDIF()
2020-09-08 14:39:16 -04:00
if(CMAKE_COMPILER_IS_GNUCXX AND CODE_COVERAGE)
2020-09-08 14:39:16 -04:00
include(CodeCoverage)
append_coverage_compiler_flags()
setup_target_for_coverage_lcov(NAME goalc-test_coverage
EXECUTABLE goalc-test --gtest_color=yes
DEPENDENCIES goalc-test
2020-09-08 15:52:31 -04:00
EXCLUDE "third-party/*" "/usr/include/*")
2020-09-08 14:39:16 -04:00
endif()