mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-07-26 06:53:56 +00:00
Initial Commit
This commit is contained in:
17
thirdparty/capstone/tests/integration/CMakeLists.txt
vendored
Normal file
17
thirdparty/capstone/tests/integration/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 3.15)
|
||||
|
||||
# Old integration tests.
|
||||
if (CAPSTONE_BUILD_LEGACY_TESTS)
|
||||
enable_testing()
|
||||
set(TEST_SOURCES test_skipdata.c test_iter.c)
|
||||
if(CAPSTONE_X86_SUPPORT)
|
||||
set(TEST_SOURCES ${TEST_SOURCES} test_customized_mnem.c)
|
||||
endif()
|
||||
|
||||
foreach(TSRC ${TEST_SOURCES})
|
||||
string(REGEX REPLACE ".c$" "" TBIN ${TSRC})
|
||||
add_executable(${TBIN} "${TESTS_INTEGRATION_DIR}/${TSRC}")
|
||||
target_link_libraries(${TBIN} PRIVATE capstone)
|
||||
add_test(NAME "legacy_${TBIN}" COMMAND ${TBIN})
|
||||
endforeach()
|
||||
endif()
|
Reference in New Issue
Block a user