mirror of
https://github.com/open-goal/jak-project.git
synced 2024-10-20 21:27:52 -04:00
5093b97cda
* wip decompiler ir * add AtomicOp stuff * fix windows build and warnings * add instruction parser * include * make minilzo shared * odr fix * a * fix merge conflicts * move decompiler into namespace * update the code coverage to include the decompiler * add demo test * add register use test to example test
43 lines
1.2 KiB
CMake
43 lines
1.2 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
|
|
decompiler/test_AtomicOpBuilder.cpp
|
|
decompiler/test_InstructionParser.cpp
|
|
${GOALC_TEST_FRAMEWORK_SOURCES}
|
|
${GOALC_TEST_CASES})
|
|
|
|
enable_testing()
|
|
|
|
target_link_libraries(goalc-test common runtime compiler gtest decomp Zydis)
|
|
|
|
IF (WIN32)
|
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
|
target_link_libraries(goalc-test mman)
|
|
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/*")
|
|
endif()
|