File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.22 )
22
3- project (xx-root VERSION 1.0.0 LANGUAGES CXX )
3+ project (xx-root LANGUAGES CXX )
44
55option (BUILD_TESTS "Build tests" OFF )
66option (ENABLE_SANITIZERS "Enable sanitizers" OFF )
Original file line number Diff line number Diff line change @@ -45,12 +45,10 @@ add_library(xx-lib ${SOURCES})
4545target_compile_features (xx-lib PUBLIC cxx_std_23 )
4646target_include_directories (xx-lib PRIVATE include ${LUA_INCLUDE_DIR} )
4747target_link_libraries (xx-lib PRIVATE
48+ spdlog::spdlog
4849 cpr::cpr
4950 nlohmann_json::nlohmann_json
5051 yaml-cpp::yaml-cpp
5152 pantor::inja
5253 ${LUA_LIBRARIES}
5354)
54- target_link_libraries (xx-lib PUBLIC
55- spdlog::spdlog
56- )
Original file line number Diff line number Diff line change 55
66namespace xxlib {
77 [[nodiscard]] inline std::string version () {
8- return " 1.0 .0" ;
8+ return " 1.1 .0" ;
99 }
1010} // namespace xxlib
1111
Original file line number Diff line number Diff line change @@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 3.22)
22
33project (xx LANGUAGES CXX )
44
5+ set (SPDLOG_FMT_EXTERNAL ON )
6+
57find_package (CLI11 CONFIG REQUIRED )
8+ find_package (spdlog CONFIG REQUIRED )
69find_package (semver CONFIG REQUIRED )
710
811set (SOURCES
@@ -18,5 +21,6 @@ target_include_directories(xx PRIVATE
1821target_link_libraries (xx PRIVATE
1922 xx-lib
2023 CLI11::CLI11
24+ spdlog::spdlog
2125 semver::semver
2226)
You can’t perform that action at this time.
0 commit comments