mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-17 16:17:02 +08:00
chore: add toml++ library
This commit is contained in:
@@ -74,7 +74,12 @@ FetchContent_Declare(
|
|||||||
|
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(soil2)
|
FetchContent_MakeAvailable(soil2)
|
||||||
|
FetchContent_Declare(
|
||||||
|
tomlplusplus
|
||||||
|
GIT_REPOSITORY https://github.com/marzer/tomlplusplus.git
|
||||||
|
GIT_TAG v3.4.0
|
||||||
|
)
|
||||||
|
FetchContent_MakeAvailable(tomlplusplus)
|
||||||
set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
|
set(INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME}
|
add_executable(${PROJECT_NAME}
|
||||||
@@ -136,6 +141,7 @@ target_link_libraries(${PROJECT_NAME}
|
|||||||
OpenGL::GL
|
OpenGL::GL
|
||||||
soil2
|
soil2
|
||||||
Freetype::Freetype
|
Freetype::Freetype
|
||||||
|
tomlplusplus::tomlplusplus
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
|
|||||||
Reference in New Issue
Block a user