mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-06-28 01:49:42 -06:00
Split networking code into its own target (#2091)
This commit is contained in:
@ -31,11 +31,6 @@ set(SOURCES_QT_SDL
|
||||
ROMInfoDialog.cpp
|
||||
RAMInfoDialog.cpp
|
||||
TitleManagerDialog.cpp
|
||||
PacketDispatcher.cpp
|
||||
Net.cpp
|
||||
Net_PCap.cpp
|
||||
Net_Slirp.cpp
|
||||
LocalMP.cpp
|
||||
OSD_shaders.h
|
||||
font.h
|
||||
Platform.cpp
|
||||
@ -93,16 +88,11 @@ add_compile_definitions(ARCHIVE_SUPPORT_ENABLED)
|
||||
|
||||
add_executable(melonDS ${SOURCES_QT_SDL})
|
||||
|
||||
option(USE_SYSTEM_LIBSLIRP "Use system libslirp instead of the bundled version" OFF)
|
||||
if (USE_SYSTEM_LIBSLIRP)
|
||||
pkg_check_modules(Slirp REQUIRED IMPORTED_TARGET slirp)
|
||||
target_link_libraries(melonDS PRIVATE PkgConfig::Slirp)
|
||||
else()
|
||||
add_subdirectory("../libslirp"
|
||||
"${CMAKE_BINARY_DIR}/libslirp"
|
||||
EXCLUDE_FROM_ALL)
|
||||
target_link_libraries(melonDS PRIVATE slirp)
|
||||
endif()
|
||||
add_subdirectory("../../net"
|
||||
"${CMAKE_BINARY_DIR}/net"
|
||||
)
|
||||
|
||||
target_link_libraries(melonDS PRIVATE net-utils)
|
||||
|
||||
if (WIN32)
|
||||
target_link_libraries(melonDS PUBLIC opengl32)
|
||||
|
Reference in New Issue
Block a user