diff --git a/CMakeLists.txt b/CMakeLists.txt index f31a615..a591527 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,25 +25,21 @@ find_package(SDL2_ttf REQUIRED) find_package(SDL2_image REQUIRED) find_package(GLEW REQUIRED) -if (EMSCRIPTEN) - +if (CMAKE_BUILD_TYPE STREQUAL "Debug") + set(CMAKE_C_FLAGS "-O2 -Wno-discarded-qualifiers -Wno-pointer-arith -Wno-unused-variable -Wno-unused-parameter -Wall -Wextra -pedantic -g") else() - if (CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_C_FLAGS "-O2 -Wno-discarded-qualifiers -Wno-pointer-arith -Wno-unused-variable -Wno-unused-parameter -Wall -Wextra -pedantic -g") - else() - set(CMAKE_C_FLAGS "-O2") - endif() + set(CMAKE_BUILD_TYPE "Release") + set(CMAKE_C_FLAGS "-O2 -Wno-discarded-qualifiers -Wno-pointer-arith -Wno-unused-variable -Wno-unused-parameter -Wall -Wextra -pedantic") +endif() - target_link_libraries(${PROJECT_NAME} m GL SDL2::SDL2 SDL2_mixer::SDL2_mixer SDL2_ttf::SDL2_ttf SDL2_image::SDL2_image GLEW::GLEW) +target_link_libraries(${PROJECT_NAME} m GL SDL2::SDL2 SDL2_mixer::SDL2_mixer SDL2_ttf::SDL2_ttf SDL2_image::SDL2_image GLEW::GLEW) - if (WIN32) - set(CMAKE_C_FLAGS "-mwindows ${CMAKE_C_FLAGS}") - target_link_libraries(${PROJECT_NAME} mingw32 m GL SDL2::SDL2 SDL2_mixer::SDL2_mixer SDL2_ttf::SDL2_ttf SDL2_image::SDL2_image GLEW::GLEW) - endif() +if (WIN32) + set(CMAKE_C_FLAGS "-mwindows ${CMAKE_C_FLAGS}") + target_link_libraries(${PROJECT_NAME} mingw32 m GL SDL2::SDL2 SDL2_mixer::SDL2_mixer SDL2_ttf::SDL2_ttf SDL2_image::SDL2_image GLEW::GLEW) endif() message("System: ${CMAKE_SYSTEM_NAME}") message("Project: ${PROJECT_NAME}") message("Build: ${CMAKE_BUILD_TYPE}") message("Flags: ${CMAKE_C_FLAGS}") - diff --git a/screenshots/1.png b/screenshots/1.png new file mode 100644 index 0000000..d6d5438 Binary files /dev/null and b/screenshots/1.png differ diff --git a/screenshots/2.png b/screenshots/2.png new file mode 100644 index 0000000..19c4abc Binary files /dev/null and b/screenshots/2.png differ diff --git a/screenshots/3.png b/screenshots/3.png new file mode 100644 index 0000000..121a46b Binary files /dev/null and b/screenshots/3.png differ diff --git a/screenshots/4.png b/screenshots/4.png new file mode 100644 index 0000000..632374d Binary files /dev/null and b/screenshots/4.png differ diff --git a/screenshots/5.png b/screenshots/5.png new file mode 100644 index 0000000..747bfd9 Binary files /dev/null and b/screenshots/5.png differ diff --git a/screenshots/6.png b/screenshots/6.png new file mode 100644 index 0000000..3b9c910 Binary files /dev/null and b/screenshots/6.png differ