Files
FEX-Emu--FEX/Source/Tools/CommonTools/CMakeLists.txt
T
crueter f2a1243892 [cmake] use MINGW builtin rather than custom detection
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>
2025-12-24 15:13:53 -05:00

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})