Closed raphaelsoul closed 1 year ago
FetchContent_Declare(
tomlplusplus
GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
GIT_TAG v3.2.0
)
FetchContent_MakeAvailable(tomlplusplus)
target_include_directories(${PROJECT_NAME} PRIVATE ${tomlplusplus_SOURCE_DIR}/include)
this works
using fetchContent module download toml++.
but cannot find any reference in IDE(Clion), header file also cannot be found.
tried
include_directories(${tomlplusplus_SOURCE_DIR}/include)
but throws error bellow when compile
quite rookie to cpp and cmake, any advise?