add fmtlib for examples

This commit is contained in:
BlackMATov
2022-01-08 05:53:42 +07:00
parent 3ffd824bb8
commit 02e7018473
4 changed files with 6 additions and 1 deletions

3
.gitmodules vendored
View File

@@ -4,3 +4,6 @@
[submodule "vendors/doctest"] [submodule "vendors/doctest"]
path = vendors/doctest path = vendors/doctest
url = https://github.com/onqtam/doctest url = https://github.com/onqtam/doctest
[submodule "vendors/fmtlib"]
path = vendors/fmtlib
url = https://github.com/fmtlib/fmt

View File

@@ -45,6 +45,7 @@ if(BUILD_AS_STANDALONE)
if(BUILD_WITH_UNTESTS) if(BUILD_WITH_UNTESTS)
enable_testing() enable_testing()
add_subdirectory(vendors/doctest) add_subdirectory(vendors/doctest)
add_subdirectory(vendors/fmtlib)
add_subdirectory(untests) add_subdirectory(untests)
endif() endif()
endif() endif()

View File

@@ -18,7 +18,7 @@ endif()
file(GLOB_RECURSE UNTESTS_SOURCES "*.cpp" "*.hpp") file(GLOB_RECURSE UNTESTS_SOURCES "*.cpp" "*.hpp")
add_executable(${PROJECT_NAME} ${UNTESTS_SOURCES}) add_executable(${PROJECT_NAME} ${UNTESTS_SOURCES})
target_link_libraries(${PROJECT_NAME} meta.hpp doctest_with_main) target_link_libraries(${PROJECT_NAME} meta.hpp doctest_with_main fmt)
target_compile_options(${PROJECT_NAME} target_compile_options(${PROJECT_NAME}
PRIVATE PRIVATE

1
vendors/fmtlib vendored Submodule

Submodule vendors/fmtlib added at b6f4ceaed0