mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-05 05:58:19 +01:00
CMakeLists: Derive the source file listings from targets directly (#118)
This gets rid of the need to store to individual variables before creating the target itself, cleaning up the variables in the surrounding scope a little bit.
This commit is contained in:
parent
12eaf496fd
commit
c6d09adcb7
3 changed files with 22 additions and 22 deletions
|
|
@ -1,10 +1,10 @@
|
|||
set(SRCS
|
||||
add_executable(dynarmic_tests
|
||||
# Source files
|
||||
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
|
||||
|
|
@ -15,9 +15,9 @@ set(SRCS
|
|||
skyeye_interpreter/skyeye_common/vfp/vfpdouble.cpp
|
||||
skyeye_interpreter/skyeye_common/vfp/vfpinstr.cpp
|
||||
skyeye_interpreter/skyeye_common/vfp/vfpsingle.cpp
|
||||
)
|
||||
|
||||
set(HEADERS
|
||||
# Header files
|
||||
rand_int.h
|
||||
skyeye_interpreter/dyncom/arm_dyncom_dec.h
|
||||
skyeye_interpreter/dyncom/arm_dyncom_interpreter.h
|
||||
skyeye_interpreter/dyncom/arm_dyncom_run.h
|
||||
|
|
@ -29,12 +29,11 @@ set(HEADERS
|
|||
skyeye_interpreter/skyeye_common/vfp/asm_vfp.h
|
||||
skyeye_interpreter/skyeye_common/vfp/vfp.h
|
||||
skyeye_interpreter/skyeye_common/vfp/vfp_helper.h
|
||||
)
|
||||
)
|
||||
|
||||
include(CreateDirectoryGroups)
|
||||
create_directory_groups(${SRCS} ${HEADERS})
|
||||
create_target_directory_groups(dynarmic_tests)
|
||||
|
||||
add_executable(dynarmic_tests ${SRCS})
|
||||
target_link_libraries(dynarmic_tests PRIVATE dynarmic boost catch)
|
||||
target_include_directories(dynarmic_tests PRIVATE . ../src)
|
||||
target_compile_options(dynarmic_tests PRIVATE ${DYNARMIC_CXX_FLAGS})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue