mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 11:00:53 +02:00
33 lines
924 B
CMake
33 lines
924 B
CMake
add_executable(FEXOfflineCompiler Main.cpp)
|
|
|
|
target_link_libraries(FEXOfflineCompiler PRIVATE
|
|
Common
|
|
CommonTools
|
|
cpp-optparse
|
|
FEXCore
|
|
JemallocLibs
|
|
fmt::fmt)
|
|
|
|
if (MINGW)
|
|
if (ARCHITECTURE_arm64ec)
|
|
set_target_properties(FEXOfflineCompiler PROPERTIES OUTPUT_NAME "FEXOfflineCompiler64")
|
|
else()
|
|
set_target_properties(FEXOfflineCompiler PROPERTIES OUTPUT_NAME "FEXOfflineCompiler32")
|
|
endif()
|
|
patch_library_wine(FEXOfflineCompiler)
|
|
target_include_directories(FEXOfflineCompiler PRIVATE
|
|
"${CMAKE_SOURCE_DIR}/Source/Windows/include/"
|
|
"${CMAKE_SOURCE_DIR}/Source/"
|
|
"${CMAKE_SOURCE_DIR}/Source/Windows/"
|
|
)
|
|
target_link_libraries(FEXOfflineCompiler PRIVATE CommonWindows ntdll_ex)
|
|
else()
|
|
target_link_libraries(FEXOfflineCompiler PRIVATE ${PTHREAD_LIB} LinuxEmulation)
|
|
endif()
|
|
|
|
LinkerGC(FEXOfflineCompiler)
|
|
|
|
install(TARGETS FEXOfflineCompiler RUNTIME
|
|
DESTINATION bin
|
|
COMPONENT Runtime)
|