Update cpp-optparse to last commit and turn into a submodule

This commit is contained in:
Joshua Vandaële
2025-10-10 16:43:49 +02:00
parent 8323c21e40
commit 4c87f08ff7
7 changed files with 19 additions and 878 deletions

View File

@@ -1,7 +1,14 @@
check_and_add_flag(CXX11 -std=c++11)
set(SRCS OptionParser.cpp OptionParser.h)
set(SRCS
cpp-optparse/OptionParser.cpp
cpp-optparse/OptionParser.h
)
add_library(cpp-optparse STATIC ${SRCS})
target_compile_features(cpp-optparse PUBLIC cxx_std_11)
target_compile_options(cpp-optparse PRIVATE -fexceptions)
dolphin_disable_warnings(cpp-optparse)
target_include_directories(cpp-optparse PUBLIC .)
target_include_directories(cpp-optparse
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/cpp-optparse
)