Код: Выделить всё
Application
-Utils
-Transport
-include
-Foo.h
-src
Foo.cpp
CMakelists.txt(a)
-CMakeLists.txt(b)
-third_party
-argparse
-rapidjson ( new added)
-bin
-include
...
-CMakeLists.txt
-CMakeLists.txt(c)
Код: Выделить всё
add_library(${PROJECT_NAME}
Foo.cpp
)
target_include_directories(${PROJECT_NAME}
PUBLIC
$
$
)
target_link_libraries(${PROJECT_NAME}
PUBLIC
...
CURL::libcurl
RapidJSON
Подробнее здесь: [url]https://stackoverflow.com/questions/79164849/require-help-on-what-i-am-missing-to-include-rapidjson-in-my-c-project[/url]
Мобильная версия