mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
29 lines
688 B
CMake
29 lines
688 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
|
|
Linux/LinuxVersion.cpp)
|
|
endif()
|
|
|
|
add_library(${NAME} STATIC ${SRCS})
|
|
target_link_libraries(${NAME} FEXCore_Base cpp-optparse tiny-json::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)
|