Files
FEX-Emu--FEX/Source/Common/CMakeLists.txt
T
Ryan Houdek 1caa9d5294 FEX: Move SBRK handling to the frontend
This is fundamentally a frontend only problem, and also Linux only.
Moves it to the frontend where it belongs.

There's likely more things in Allocator.cpp that can be moved to the
frontend but this is the first thing.

NFC
2026-01-12 13:18:01 -08:00

28 lines
650 B
CMake

add_subdirectory(cpp-optparse/)
set(NAME Common)
set(SRCS
Config.cpp
CPUInfo.cpp
ArgumentLoader.cpp
HostFeatures.cpp
JSONPool.cpp
SHMStats.cpp
VolatileMetadata.cpp)
if (NOT MINGW)
list(APPEND SRCS
FEXServerClient.cpp
FileFormatCheck.cpp
Linux/SBRKAllocations.cpp)
endif()
add_library(${NAME} STATIC ${SRCS})
target_link_libraries(${NAME} FEXCore_Base cpp-optparse tiny-json FEXHeaderUtils range-v3::range-v3)
target_include_directories(${NAME} PRIVATE ${CMAKE_BINARY_DIR}/generated)
set_target_properties(${NAME} PROPERTIES
C_VISIBILITY_PRESET hidden
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN TRUE)