File tree Expand file tree Collapse file tree 3 files changed +41
-5
lines changed
Expand file tree Collapse file tree 3 files changed +41
-5
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.31)
2- project (chip8cpp)
2+
3+ ##########################################
34
45set (CMAKE_CXX_STANDARD 23)
5- set (CMAKE_CXX_STANDARD_REQUIRED true )
6+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
7+
8+ ##########################################
9+
10+ project (chip8cpp)
11+
12+ ##########################################
13+
14+ include (cmake/utils.cmake)
15+
16+ ##########################################
617
7- # set the output directory for built objects.
8- # This makes sure that the dynamic library goes into the build directory automatically.
918set (CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /$<CONFIGURATION>" )
1019set (CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /$<CONFIGURATION>" )
1120
12- add_subdirectory (deps/sdl EXCLUDE_FROM_ALL )
21+ ##########################################
22+
23+ add_subdirectory (deps)
1324add_subdirectory (src)
Original file line number Diff line number Diff line change 1+ include_guard ()
2+
3+ ##########################################
4+
5+ function (silence_deprecation_warnings)
6+ set (CMAKE_WARN_DEPRECATED_OLD ${CMAKE_WARN_DEPRECATED} PARENT_SCOPE)
7+ set (CMAKE_WARN_DEPRECATED OFF CACHE BOOL "" FORCE)
8+ endfunction ()
9+
10+ ##########################################
11+
12+ function (restore_deprecation_warnings)
13+ set (CMAKE_WARN_DEPRECATED ${CMAKE_WARN_DEPRECATED_OLD} CACHE BOOL "" FORCE)
14+ endfunction ()
15+
16+ ##########################################
Original file line number Diff line number Diff line change 1+ silence_deprecation_warnings()
2+
3+ ##########################################
4+
5+ add_subdirectory (sdl EXCLUDE_FROM_ALL )
6+
7+ ##########################################
8+
9+ restore_deprecation_warnings()
You can’t perform that action at this time.
0 commit comments