mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
CMake has had the `MINGW` builtin to describe MinGW targets since at least version 3.2, so it can safely be used. This variable is also set for the MSYS2 environments, so CLANGARM64 also correctly sets `MINGW`. Note that this depends on https://github.com/FEX-Emu/jemalloc/pull/11. Signed-off-by: crueter <crueter@eden-emu.dev>
15 lines
300 B
CMake
15 lines
300 B
CMake
set(NAME CommonTools)
|
|
set(SRCS
|
|
DummyHandlers.cpp
|
|
)
|
|
|
|
if (NOT MINGW)
|
|
list(APPEND SRCS
|
|
Linux/Utils/ELFContainer.cpp
|
|
)
|
|
endif()
|
|
|
|
add_library(${NAME} STATIC ${SRCS})
|
|
target_link_libraries(${NAME} FEXCore_Base FEXHeaderUtils)
|
|
target_include_directories(${NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|