mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-22 05:15:51 +12:00
Migrate bpcpp's package management
This commit is contained in:
parent
e8dc11cc31
commit
2243af8b94
3 changed files with 24773 additions and 554 deletions
24
third_party/open-bp-cpp/CMakeLists.txt
vendored
24
third_party/open-bp-cpp/CMakeLists.txt
vendored
|
@ -2,12 +2,6 @@
|
|||
# project specific logic here.
|
||||
#
|
||||
cmake_minimum_required (VERSION 3.8)
|
||||
include("cmake/HunterGate.cmake")
|
||||
|
||||
HunterGate(
|
||||
URL "https://github.com/cpp-pm/hunter/archive/v0.24.18.tar.gz"
|
||||
SHA1 "1292e4d661e1770d6d6ca08c12c07cf34a0bf718"
|
||||
)
|
||||
|
||||
# Enable Hot Reload for MSVC compilers if supported.
|
||||
if (POLICY CMP0141)
|
||||
|
@ -15,27 +9,23 @@ if (POLICY CMP0141)
|
|||
set(CMAKE_MSVC_DEBUG_INFORMATION_FORMAT "$<IF:$<AND:$<C_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:MSVC>>,$<$<CONFIG:Debug,RelWithDebInfo>:EditAndContinue>,$<$<CONFIG:Debug,RelWithDebInfo>:ProgramDatabase>>")
|
||||
endif()
|
||||
|
||||
project ("buttplugCpp")
|
||||
project(buttplugCpp)
|
||||
|
||||
# Add source to this project's executable.
|
||||
add_executable (buttplugCpp "example/buttplugCpp.cpp" "example/buttplugCpp.h")
|
||||
|
||||
file(GLOB SRC_FILES
|
||||
"src/*.cpp"
|
||||
"include/*.h"
|
||||
"include/*.hpp"
|
||||
)
|
||||
|
||||
target_sources(buttplugCpp PUBLIC
|
||||
${SRC_FILES}
|
||||
)
|
||||
add_library(buttplugCpp STATIC ${SRC_FILES})
|
||||
|
||||
set(USE_ZLIB FALSE)
|
||||
add_subdirectory(third_party/IXWebSocket)
|
||||
|
||||
hunter_add_package(nlohmann_json)
|
||||
hunter_add_package(ZLIB)
|
||||
find_package(ixwebsocket CONFIG REQUIRED)
|
||||
find_package(nlohmann_json 3.2.0 REQUIRED)
|
||||
find_package(ZLIB REQUIRED)
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(buttplugCpp PUBLIC ixwebsocket::ixwebsocket nlohmann_json::nlohmann_json Threads::Threads)
|
||||
target_link_libraries(buttplugCpp PUBLIC ixwebsocket::ixwebsocket Threads::Threads)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER 3.12)
|
||||
set_property(TARGET buttplugCpp PROPERTY CXX_STANDARD 11)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue