mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-14 20:00:46 +02:00
This was mostly there, just needed to remove some extraneous headers and only insert vixl in to the library list if the options were enabled.
23 lines
641 B
CMake
23 lines
641 B
CMake
add_subdirectory(cpp-optparse/)
|
|
|
|
set(NAME Common)
|
|
set(SRCS
|
|
Config.cpp
|
|
ArgumentLoader.cpp
|
|
EnvironmentLoader.cpp
|
|
HostFeatures.cpp
|
|
JSONPool.cpp
|
|
StringUtil.cpp)
|
|
|
|
if (NOT MINGW_BUILD)
|
|
list (APPEND SRCS
|
|
FEXServerClient.cpp
|
|
FileFormatCheck.cpp)
|
|
endif()
|
|
|
|
add_library(${NAME} STATIC ${SRCS})
|
|
target_link_libraries(${NAME} FEXCore_Base cpp-optparse tiny-json FEXHeaderUtils vixl)
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/External/cpp-optparse/)
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_BINARY_DIR}/generated)
|
|
target_include_directories(${NAME} PRIVATE ${CMAKE_SOURCE_DIR}/External/xbyak/)
|