mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-23 07:11:21 -08:00
CMake: Create INTERFACE targets for microprofile and nihstro
This commit is contained in:
parent
3b68600f81
commit
d736cca848
@ -263,8 +263,12 @@ set(DYNARMIC_NO_BUNDLED_FMT ON)
|
||||
add_subdirectory(externals/dynarmic)
|
||||
|
||||
add_subdirectory(externals/glad)
|
||||
include_directories(externals/microprofile)
|
||||
include_directories(externals/nihstro/include)
|
||||
|
||||
add_library(microprofile INTERFACE)
|
||||
target_include_directories(microprofile INTERFACE externals/microprofile)
|
||||
|
||||
add_library(nihstro-headers INTERFACE)
|
||||
target_include_directories(nihstro-headers INTERFACE externals/nihstro/include)
|
||||
|
||||
if (MSVC)
|
||||
add_subdirectory(externals/getopt)
|
||||
|
@ -92,7 +92,7 @@ else()
|
||||
add_executable(citra-qt ${SRCS} ${HEADERS} ${UI_HDRS})
|
||||
endif()
|
||||
target_link_libraries(citra-qt PRIVATE audio_core common core input_common video_core)
|
||||
target_link_libraries(citra-qt PRIVATE Boost::boost glad Qt5::OpenGL Qt5::Widgets)
|
||||
target_link_libraries(citra-qt PRIVATE Boost::boost glad nihstro-headers Qt5::OpenGL Qt5::Widgets)
|
||||
target_link_libraries(citra-qt PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads)
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
|
@ -95,7 +95,7 @@ endif()
|
||||
create_directory_groups(${SRCS} ${HEADERS})
|
||||
|
||||
add_library(common STATIC ${SRCS} ${HEADERS})
|
||||
target_link_libraries(common PUBLIC Boost::boost)
|
||||
target_link_libraries(common PUBLIC Boost::boost microprofile)
|
||||
if (ARCHITECTURE_x86_64)
|
||||
target_link_libraries(common PRIVATE xbyak)
|
||||
endif()
|
||||
|
@ -80,7 +80,7 @@ create_directory_groups(${SRCS} ${HEADERS})
|
||||
|
||||
add_library(video_core STATIC ${SRCS} ${HEADERS})
|
||||
target_link_libraries(video_core PUBLIC common core)
|
||||
target_link_libraries(video_core PRIVATE glad)
|
||||
target_link_libraries(video_core PRIVATE glad nihstro-headers)
|
||||
|
||||
if (ARCHITECTURE_x86_64)
|
||||
target_link_libraries(video_core PRIVATE xbyak)
|
||||
|
Loading…
Reference in New Issue
Block a user