File tree Expand file tree Collapse file tree 7 files changed +11
-36
lines changed Expand file tree Collapse file tree 7 files changed +11
-36
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.8)
22
3- add_subdirectory ("cppjson" );
4- add_subdirectory ("Test" );
3+ add_subdirectory ("cppjson" )
4+ add_subdirectory ("Test" )
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ project ("Test")
1515add_executable (Test "Test.cpp" "Test.h" )
1616
1717if (CMAKE_VERSION VERSION_GREATER 3.12)
18- set_property (TARGET Test PROPERTY CXX_STANDARD 20 )
18+ set_property (TARGET Test PROPERTY CXX_STANDARD 23 )
1919endif ()
2020
2121# TODO: Add tests and install targets if needed.
Original file line number Diff line number Diff line change 1- // Test.cpp : Defines the entry point for the application.
2- //
3-
4- #include " Test.h"
5-
6- using namespace std ;
1+ #include < print>
72
83int main ()
94{
10- cout << " Hello CMake." << endl;
11- return 0 ;
12- }
5+ std::println (" Hewwo wowld" );
6+ }
Original file line number Diff line number Diff line change 1- // Test.h : Include file for standard system include files,
2- // or project specific include files.
3-
4- #pragma once
5-
6- #include < iostream>
7-
8- // TODO: Reference additional headers your program requires here.
1+ #pragma once
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ project ("cppjson")
1515add_executable (cppjson "cppjson.cpp" "cppjson.h" )
1616
1717if (CMAKE_VERSION VERSION_GREATER 3.12)
18- set_property (TARGET cppjson PROPERTY CXX_STANDARD 20 )
18+ set_property (TARGET cppjson PROPERTY CXX_STANDARD 23 )
1919endif ()
2020
2121# TODO: Add tests and install targets if needed.
Original file line number Diff line number Diff line change 1- // cppjson.cpp : Defines the entry point for the application.
2- //
3-
4- #include " cppjson.h"
5-
6- using namespace std ;
1+ #include < print>
72
83int main ()
94{
10- cout << " Hello CMake. " << endl ;
5+ std::println ( " Hewwo " ) ;
116 return 0 ;
127}
Original file line number Diff line number Diff line change 1- // cppjson.h : Include file for standard system include files,
2- // or project specific include files.
3-
4- #pragma once
5-
6- #include < iostream>
7-
8- // TODO: Reference additional headers your program requires here.
1+ #pragma once
You can’t perform that action at this time.
0 commit comments