-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7f8ffe
commit e60ee56
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cmake_minimum_required (VERSION 3.15) | ||
|
||
project (SuperMario) | ||
|
||
set (CMAKE_CXX_STANDARD 17) | ||
set (CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set (CMAKE_CXX_EXTENSIONS OFF) | ||
if (MSVC) | ||
add_compile_options (/W4 /permissive- /Zc:externConstexpr /Zc:inline) | ||
endif () | ||
|
||
add_executable (SuperMario WIN32) | ||
|
||
add_subdirectory (include) | ||
add_subdirectory (src) | ||
add_subdirectory (resources) | ||
|
||
set (SFML_STATIC_LIBRARIES TRUE) | ||
set (SFML_DIR "C:/SFML/SFML-2.5.1/lib/cmake/SFML") | ||
|
||
find_package (SFML 2.5 COMPONENTS audio graphics REQUIRED) | ||
|
||
set_target_properties (sfml-main sfml-system sfml-window sfml-graphics sfml-audio sfml-network PROPERTIES MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE) | ||
|
||
target_link_libraries (SuperMario sfml-graphics sfml-audio sfml-main) | ||
target_link_libraries (SuperMario sfml-graphics sfml-main) |