Skip to content

Commit fcd621f

Browse files
committed
add win32 for windows builds
1 parent e7d1e14 commit fcd621f

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

CMakeLists.txt

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
22

3-
project("SpaceCheckers" VERSION 1.0.10
3+
project("SpaceCheckers" VERSION 1.0.11
44
HOMEPAGE_URL "https://github.com/Longwater1234/space-checkers")
55

66
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
@@ -11,13 +11,7 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1111

1212
if (NOT APPLE)
1313
set(SFML_STATIC_LIBRARIES TRUE)
14-
endif()
15-
16-
# defualt to building in "RELEASE" mode
17-
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
18-
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
19-
"Choose the type of build." FORCE)
20-
endif()
14+
endif()
2115

2216
# write app version into Header
2317
configure_file(
@@ -39,7 +33,7 @@ find_package(SFML 2.6 REQUIRED COMPONENTS "graphics" "window" "system")
3933
add_subdirectory(dependencies)
4034

4135
if(WIN32)
42-
add_executable(SpaceCheckers ${GAME_SRC} ${CMAKE_SOURCE_DIR}/resources/win-icon.rc)
36+
add_executable(SpaceCheckers WIN32 ${GAME_SRC} ${CMAKE_SOURCE_DIR}/resources/win-icon.rc)
4337
target_link_libraries(SpaceCheckers PRIVATE sfml-main)
4438
elseif(APPLE)
4539
include(${CMAKE_SOURCE_DIR}/cmake/macbundle.cmake)

src/AppVersion.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
// clang-format off
77
namespace chk {
8-
constexpr const char* APP_VERSION = "1.0.10";
8+
constexpr const char* APP_VERSION = "1.0.11";
99
}
1010

1111
#endif // APP_VERSION_HPP

0 commit comments

Comments
 (0)