mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-20 12:13:57 +00:00
32 lines
637 B
CMake
32 lines
637 B
CMake
file(GLOB_RECURSE SRC_FILES CONFIGURE_DEPENDS
|
|
*.cpp
|
|
*.hpp
|
|
*.rc
|
|
)
|
|
|
|
list(SORT SRC_FILES)
|
|
|
|
add_library(windows-emulator ${SRC_FILES})
|
|
|
|
momo_assign_source_group(${SRC_FILES})
|
|
|
|
if(NOT MOMO_ENABLE_CLANG_TIDY)
|
|
target_precompile_headers(windows-emulator PRIVATE std_include.hpp)
|
|
endif()
|
|
|
|
target_link_libraries(windows-emulator PRIVATE
|
|
unicorn-emulator
|
|
)
|
|
|
|
if (MOMO_ENABLE_RUST_CODE)
|
|
target_link_libraries(windows-emulator PRIVATE
|
|
icicle-emulator
|
|
)
|
|
endif()
|
|
|
|
target_link_libraries(windows-emulator PUBLIC emulator)
|
|
|
|
target_include_directories(windows-emulator INTERFACE "${CMAKE_CURRENT_LIST_DIR}")
|
|
|
|
momo_strip_target(windows-emulator)
|