Integrate ArgsParser as separate package. Setup json_cli app testbed.
This commit is contained in:
@@ -11,7 +11,7 @@ set(CMAKE_CXX_STANDARD 20)
|
||||
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
#include(cmake/CPM.cmake)
|
||||
include(cmake/CPM.cmake)
|
||||
|
||||
file(GLOB_RECURSE HEADERS "include/*.hpp")
|
||||
|
||||
@@ -30,4 +30,19 @@ endif()
|
||||
|
||||
add_executable(json_cli main.cpp)
|
||||
|
||||
target_link_libraries(json_cli PUBLIC json)
|
||||
CPMAddPackage(
|
||||
NAME ArgsParser
|
||||
URL https://git.redacted.cc/josh/ArgsParser/archive/Prerelease-1.zip
|
||||
)
|
||||
|
||||
CPMAddPackage(
|
||||
NAME mcolor
|
||||
URL https://git.redacted.cc/maxine/mcolor/archive/Release-1.zip
|
||||
)
|
||||
|
||||
target_include_directories(json_cli PUBLIC
|
||||
${ArgsParser_SOURCE_DIR}/include
|
||||
${mcolor_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
target_link_libraries(json_cli PUBLIC json ArgsParser mcolor)
|
Reference in New Issue
Block a user