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.0 )
2- project (cpp-template VERSION 0.1.0)
2+ project (cppfig VERSION 0.1.0)
33
44set (CMAKE_CXX_STANDARD 17)
55
6- find_package (GTest REQUIRED )
6+ find_package (GTest CONFIG REQUIRED )
77
88option (STRICT_BUILD "Enable warnings as errors" ON )
99
Original file line number Diff line number Diff line change 1- add_library (CppfigLib )
1+ add_library (cppfig )
22
3- target_sources (CppfigLib
3+ target_sources (cppfig
44 PRIVATE
55 ${CMAKE_CURRENT_LIST_DIR } /Configuration.cpp
66 PUBLIC
77 ${CMAKE_CURRENT_LIST_DIR } /Configuration.h
88 ${CMAKE_CURRENT_LIST_DIR } /IConfiguration.h
99)
1010
11- target_include_directories (CppfigLib
11+ target_include_directories (cppfig
1212 PUBLIC
1313 ${CMAKE_CURRENT_LIST_DIR }
1414)
1515
16- target_link_libraries (CppfigLib
16+ target_link_libraries (cppfig
1717 PUBLIC
18- # nlohmann_json::nlohmann_json
19- # spdlog::spdlog
18+ nlohmann_json::nlohmann_json
2019)
2120
2221if (STRICT_BUILD)
2322 if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
24- target_compile_options (CppfigLib PRIVATE -Wall -Wextra -Wpedantic -Werror -Wdocumentation )
23+ target_compile_options (cppfig PRIVATE -Wall -Wextra -Wpedantic -Werror -Wdocumentation )
2524 else ()
26- target_compile_options (CppfigLib PRIVATE -Wall -Wextra -Wpedantic -Werror )
25+ target_compile_options (cppfig PRIVATE -Wall -Wextra -Wpedantic -Werror )
2726 endif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
2827endif (STRICT_BUILD )
You can’t perform that action at this time.
0 commit comments