mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-15 01:00:53 +02:00
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
28 lines
650 B
CMake
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)
|