Files
FEX-Emu--FEX/Source/Common/CMakeLists.txt
T
Ryan Houdek ef4c4f6e9b FEXCore: Disable vixl linking if vixl disasm or simulator is disabled
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.
2024-08-16 07:29:41 -07:00

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/)