cmake: fix typo "UNICRON" => "UNICORN" ()

This commit is contained in:
scribam 2020-06-03 04:13:32 +02:00 committed by Nguyen Anh Quynh
parent 0cfe8b9bad
commit a23ce3c27f

@ -908,34 +908,34 @@ else()
endif() endif()
if (UNICORN_HAS_X86) if (UNICORN_HAS_X86)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_X86) set(UNICORN_COMPILE_OPTIONS ${UNICORN_COMPILE_OPTIONS} -DUNICORN_HAS_X86)
set(UNICRON_LINK_LIBRARIES ${UNICRON_LINK_LIBRARIES} x86_64-softmmu) set(UNICORN_LINK_LIBRARIES ${UNICORN_LINK_LIBRARIES} x86_64-softmmu)
set(UNICRON_SAMPLE_FILE ${UNICRON_SAMPLE_FILE} sample_x86 sample_x86_32_gdt_and_seg_regs sample_batch_reg mem_apis shellcode) set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_x86 sample_x86_32_gdt_and_seg_regs sample_batch_reg mem_apis shellcode)
endif() endif()
if (UNICORN_HAS_ARM) if (UNICORN_HAS_ARM)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_ARM) set(UNICORN_COMPILE_OPTIONS ${UNICORN_COMPILE_OPTIONS} -DUNICORN_HAS_ARM)
set(UNICRON_LINK_LIBRARIES ${UNICRON_LINK_LIBRARIES} arm-softmmu armeb-softmmu) set(UNICORN_LINK_LIBRARIES ${UNICORN_LINK_LIBRARIES} arm-softmmu armeb-softmmu)
set(UNICRON_SAMPLE_FILE ${UNICRON_SAMPLE_FILE} sample_arm sample_armeb) set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_arm sample_armeb)
endif() endif()
if (UNICORN_HAS_AARCH64) if (UNICORN_HAS_AARCH64)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_ARM64) set(UNICORN_COMPILE_OPTIONS ${UNICORN_COMPILE_OPTIONS} -DUNICORN_HAS_ARM64)
set(UNICRON_LINK_LIBRARIES ${UNICRON_LINK_LIBRARIES} aarch64-softmmu aarch64eb-softmmu) set(UNICORN_LINK_LIBRARIES ${UNICORN_LINK_LIBRARIES} aarch64-softmmu aarch64eb-softmmu)
set(UNICRON_SAMPLE_FILE ${UNICRON_SAMPLE_FILE} sample_arm64 sample_arm64eb) set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_arm64 sample_arm64eb)
endif() endif()
if (UNICORN_HAS_M68K) if (UNICORN_HAS_M68K)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_M68K) set(UNICORN_COMPILE_OPTIONS ${UNICORN_COMPILE_OPTIONS} -DUNICORN_HAS_M68K)
set(UNICRON_LINK_LIBRARIES ${UNICRON_LINK_LIBRARIES} m68k-softmmu) set(UNICORN_LINK_LIBRARIES ${UNICORN_LINK_LIBRARIES} m68k-softmmu)
set(UNICRON_SAMPLE_FILE ${UNICRON_SAMPLE_FILE} sample_m68k) set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_m68k)
endif() endif()
if (UNICORN_HAS_MIPS) if (UNICORN_HAS_MIPS)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_MIPS -DUNICORN_HAS_MIPSEL -DUNICORN_HAS_MIPS64 -DUNICORN_HAS_MIPS64EL) set(UNICORN_COMPILE_OPTIONS ${UNICORN_COMPILE_OPTIONS} -DUNICORN_HAS_MIPS -DUNICORN_HAS_MIPSEL -DUNICORN_HAS_MIPS64 -DUNICORN_HAS_MIPS64EL)
set(UNICRON_LINK_LIBRARIES ${UNICRON_LINK_LIBRARIES} mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu) set(UNICORN_LINK_LIBRARIES ${UNICORN_LINK_LIBRARIES} mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu)
set(UNICRON_SAMPLE_FILE ${UNICRON_SAMPLE_FILE} sample_mips) set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_mips)
endif() endif()
if (UNICORN_HAS_SPARC) if (UNICORN_HAS_SPARC)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_SPARC) set(UNICORN_COMPILE_OPTIONS ${UNICORN_COMPILE_OPTIONS} -DUNICORN_HAS_SPARC)
set(UNICRON_LINK_LIBRARIES ${UNICRON_LINK_LIBRARIES} sparc-softmmu sparc64-softmmu) set(UNICORN_LINK_LIBRARIES ${UNICORN_LINK_LIBRARIES} sparc-softmmu sparc64-softmmu)
set(UNICRON_SAMPLE_FILE ${UNICRON_SAMPLE_FILE} sample_sparc) set(UNICORN_SAMPLE_FILE ${UNICORN_SAMPLE_FILE} sample_sparc)
endif() endif()
if (UNICORN_HAS_PPC) if (UNICORN_HAS_PPC)
set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_PPC) set(UNICRON_COMPILE_OPTIONS ${UNICRON_COMPILE_OPTIONS} -DUNICORN_HAS_PPC)
@ -944,7 +944,7 @@ if (UNICORN_HAS_PPC)
endif() endif()
target_compile_options(unicorn PRIVATE target_compile_options(unicorn PRIVATE
${UNICRON_COMPILE_OPTIONS} ${UNICORN_COMPILE_OPTIONS}
) )
if(MSVC) if(MSVC)
@ -955,11 +955,11 @@ if(MSVC)
endif() endif()
target_link_libraries(unicorn target_link_libraries(unicorn
${UNICRON_LINK_LIBRARIES} ${UNICORN_LINK_LIBRARIES}
) )
else() else()
target_link_libraries(unicorn target_link_libraries(unicorn
${UNICRON_LINK_LIBRARIES} ${UNICORN_LINK_LIBRARIES}
m m
) )
set_target_properties(unicorn PROPERTIES set_target_properties(unicorn PROPERTIES
@ -979,7 +979,7 @@ else()
) )
endif() endif()
foreach(SAMPLE_FILE ${UNICRON_SAMPLE_FILE}) foreach(SAMPLE_FILE ${UNICORN_SAMPLE_FILE})
add_executable(${SAMPLE_FILE} add_executable(${SAMPLE_FILE}
${CMAKE_CURRENT_SOURCE_DIR}/samples/${SAMPLE_FILE}.c ${CMAKE_CURRENT_SOURCE_DIR}/samples/${SAMPLE_FILE}.c
) )