mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 00:57:44 -04:00
69f7f46477
* msvc: Add Address Sanitizer https://devblogs.microsoft.com/cppblog/addresssanitizer-asan-for-windows-with-msvc/ * cmake: Add Address Sanitizer * docs: Update ReadME * see if we can replicate the test failure * windows fixes maybe * cmake: Compile with gcc and clang (only coverage on * hacky try again * clean up * fix clang issues * linting Co-authored-by: water <awaterford111445@gmail.com>
43 lines
1.3 KiB
CMake
43 lines
1.3 KiB
CMake
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
include("goalc/CMakeLists.txt")
|
|
|
|
add_executable(goalc-test
|
|
test_main.cpp
|
|
test_test.cpp
|
|
test_reader.cpp
|
|
test_goos.cpp
|
|
test_listener_deci2.cpp
|
|
test_kernel.cpp
|
|
all_jak1_symbols.cpp
|
|
test_type_system.cpp
|
|
test_CodeTester.cpp
|
|
test_emitter.cpp
|
|
test_emitter_avx.cpp
|
|
test_common_util.cpp
|
|
test_pretty_print.cpp
|
|
test_zydis.cpp
|
|
goalc/test_goal_kernel.cpp
|
|
${GOALC_TEST_FRAMEWORK_SOURCES}
|
|
${GOALC_TEST_CASES})
|
|
|
|
enable_testing()
|
|
|
|
IF (WIN32)
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
|
|
# TODO - split out these declarations for platform specific includes
|
|
target_link_libraries(goalc-test cross_sockets goos common_util runtime compiler type_system gtest mman Zydis)
|
|
ELSE()
|
|
target_link_libraries(goalc-test cross_sockets goos common_util runtime compiler type_system gtest Zydis)
|
|
ENDIF()
|
|
|
|
if(UNIX AND CMAKE_COMPILER_IS_GNUCXX AND CODE_COVERAGE)
|
|
include(CodeCoverage)
|
|
append_coverage_compiler_flags()
|
|
setup_target_for_coverage_lcov(NAME goalc-test_coverage
|
|
EXECUTABLE goalc-test --gtest_color=yes
|
|
DEPENDENCIES goalc-test
|
|
EXCLUDE "third-party/*" "/usr/include/*" "decompiler/*")
|
|
endif()
|