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 1
1
cmake_minimum_required (VERSION 3.8 )
2
2
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")
15
15
add_executable (Test "Test.cpp" "Test.h" )
16
16
17
17
if (CMAKE_VERSION VERSION_GREATER 3.12 )
18
- set_property (TARGET Test PROPERTY CXX_STANDARD 20 )
18
+ set_property (TARGET Test PROPERTY CXX_STANDARD 23 )
19
19
endif ()
20
20
21
21
# 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>
7
2
8
3
int main ()
9
4
{
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")
15
15
add_executable (cppjson "cppjson.cpp" "cppjson.h" )
16
16
17
17
if (CMAKE_VERSION VERSION_GREATER 3.12 )
18
- set_property (TARGET cppjson PROPERTY CXX_STANDARD 20 )
18
+ set_property (TARGET cppjson PROPERTY CXX_STANDARD 23 )
19
19
endif ()
20
20
21
21
# 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>
7
2
8
3
int main ()
9
4
{
10
- cout << " Hello CMake. " << endl ;
5
+ std::println ( " Hewwo " ) ;
11
6
return 0 ;
12
7
}
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