File tree Expand file tree Collapse file tree 5 files changed +16
-8
lines changed
Expand file tree Collapse file tree 5 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.21)
22
3- project (SparserCpp)
3+ project (SparserCpp
4+ VERSION 0.1
5+ LANGUAGES CXX
6+ )
47
58set (CMAKE_CXX_STANDARD 23)
69set (CMAKE_CXX_STANDARD_REQUIRED True )
Original file line number Diff line number Diff line change 2121 "binaryDir" : " ${sourceDir}/build"
2222 },
2323 {
24- "name" : " macos-arm" ,
24+ "name" : " macos-arm-base" ,
25+ "hidden" : true ,
2526 "inherits" : " base" ,
2627 "description" : " Preset for ARM macOS" ,
2728 "generator" : " Ninja" ,
2829 "cacheVariables" : {
29- "CMAKE_BUILD_TYPE" : " Release" ,
3030 "CMAKE_SYSTEM_NAME" : " Darwin" ,
3131 "VCPKG_TARGET_TRIPLET" : " arm64-osx"
3232 }
4545 }
4646 }
4747 },
48+ {
49+ "name" : " macos-arm-release" ,
50+ "inherits" : " macos-arm-base" ,
51+ "description" : " Release preset for ARM macOS" ,
52+ "cacheVariables" : {
53+ "CMAKE_BUILD_TYPE" : " Release"
54+ }
55+ },
4856 {
4957 "name" : " macos-arm-debug" ,
50- "inherits" : " macos-arm" ,
58+ "inherits" : " macos-arm-base " ,
5159 "description" : " Debug preset for ARM macOS" ,
5260 "cacheVariables" : {
5361 "CMAKE_BUILD_TYPE" : " Debug"
Original file line number Diff line number Diff line change @@ -2,4 +2,3 @@ add_subdirectory(sparser)
22
33add_executable (SparserMain main.cpp)
44target_link_libraries (SparserMain PRIVATE SparserCpp)
5- target_link_libraries (SparserMain PRIVATE rapidjson)
Original file line number Diff line number Diff line change 11add_library (SparserCpp sparser.cpp json_facade.cpp)
22target_include_directories (SparserCpp PUBLIC ${CMAKE_SOURCE_DIR} /include )
3- target_link_libraries (SparserCpp PRIVATE rapidjson)
3+ target_link_libraries (SparserCpp PUBLIC rapidjson)
Original file line number Diff line number Diff line change 11add_executable (sparser_test sparser_test.cpp)
22
33target_link_libraries (sparser_test PRIVATE GTest::gtest_main SparserCpp)
4- target_include_directories (sparser_test PRIVATE SparserCpp ${CMAKE_SOURCE_DIR} /include )
5-
64
75include (GoogleTest)
86gtest_discover_tests(sparser_test)
You can’t perform that action at this time.
0 commit comments