made externals modules use git external to avoid potential issues on installation

This commit is contained in:
study-faraphel 2025-01-02 21:48:08 +01:00
parent a7c1bba666
commit b446b6025d
3 changed files with 8 additions and 11 deletions

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "external/argparse"]
path = external/argparse
url = https://github.com/p-ranav/argparse

View file

@ -6,17 +6,6 @@ set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(FetchContent)
find_package(PkgConfig REQUIRED)
FetchContent_Declare(argparse GIT_REPOSITORY https://github.com/p-ranav/argparse.git)
FetchContent_MakeAvailable(argparse)
pkg_check_modules(MPG123 REQUIRED libmpg123)
pkg_check_modules(PORTAUDIO REQUIRED portaudio-2.0)
pkg_check_modules(OpenSSL REQUIRED openssl)
add_executable(M2-PT-DRP
source/main.cpp
source/packets/audio/AudioPacketData.hpp
@ -90,4 +79,8 @@ target_link_libraries(M2-PT-DRP PRIVATE
portaudio
ssl
crypto
argparse::argparse
)
add_subdirectory(external/argparse)

1
external/argparse vendored Submodule

@ -0,0 +1 @@
Subproject commit cbd9fd8ed675ed6a2ac1bd7142d318c6ad5d3462