1bedd3bd7f
Moves functions out of the main CMakeLists file into module files that can just be included whenever necessary. This also uses the CMake provided variables for enforcing compiler requirements.
40 lines
1.5 KiB
CMake
40 lines
1.5 KiB
CMake
include_directories(. ../src)
|
|
include(CreateDirectoryGroups)
|
|
|
|
set(SRCS
|
|
arm/fuzz_arm.cpp
|
|
arm/fuzz_thumb.cpp
|
|
arm/test_arm_disassembler.cpp
|
|
arm/test_thumb_instructions.cpp
|
|
main.cpp
|
|
rand_int.h
|
|
skyeye_interpreter/dyncom/arm_dyncom_dec.cpp
|
|
skyeye_interpreter/dyncom/arm_dyncom_interpreter.cpp
|
|
skyeye_interpreter/dyncom/arm_dyncom_thumb.cpp
|
|
skyeye_interpreter/dyncom/arm_dyncom_trans.cpp
|
|
skyeye_interpreter/skyeye_common/armstate.cpp
|
|
skyeye_interpreter/skyeye_common/armsupp.cpp
|
|
skyeye_interpreter/skyeye_common/vfp/vfp.cpp
|
|
skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp
|
|
skyeye_interpreter/skyeye_common/vfp/vfpinstr.cpp
|
|
skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp
|
|
)
|
|
|
|
set(HEADERS
|
|
skyeye_interpreter/dyncom/arm_dyncom_dec.h
|
|
skyeye_interpreter/dyncom/arm_dyncom_interpreter.h
|
|
skyeye_interpreter/dyncom/arm_dyncom_run.h
|
|
skyeye_interpreter/dyncom/arm_dyncom_thumb.h
|
|
skyeye_interpreter/dyncom/arm_dyncom_trans.h
|
|
skyeye_interpreter/skyeye_common/arm_regformat.h
|
|
skyeye_interpreter/skyeye_common/armstate.h
|
|
skyeye_interpreter/skyeye_common/armsupp.h
|
|
skyeye_interpreter/skyeye_common/vfp/asm_vfp.h
|
|
skyeye_interpreter/skyeye_common/vfp/vfp.h
|
|
skyeye_interpreter/skyeye_common/vfp/vfp_helper.h
|
|
)
|
|
|
|
create_directory_groups(${SRCS} ${HEADERS})
|
|
add_executable(dynarmic_tests ${SRCS})
|
|
target_link_libraries(dynarmic_tests dynarmic ${llvm_libs})
|
|
set_target_properties(dynarmic_tests PROPERTIES LINKER_LANGUAGE CXX)
|