mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 16:00:44 +02:00
Splits out the few required dependencies to a FEXCore_Base static library. FEXCore then links to this directly. Then make it so the FEX Common code links to FEXCore_Base so the jemalloc dependency doesn't get pulled in.
15 lines
436 B
CMake
15 lines
436 B
CMake
set(NAME Common)
|
|
set(SRCS
|
|
ArgumentLoader.cpp
|
|
Config.cpp
|
|
EnvironmentLoader.cpp
|
|
FileFormatCheck.cpp
|
|
RootFSSetup.cpp
|
|
StringUtil.cpp
|
|
SocketLogging.cpp)
|
|
|
|
add_library(${NAME} STATIC ${SRCS})
|
|
target_link_libraries(${NAME} FEXCore_Base cpp-optparse json-maker)
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/External/cpp-optparse/)
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_BINARY_DIR}/generated)
|