Skip to content

Commit 5f27e7e

Browse files
Merge pull request #161 from Longwater1234/dev
Hide console, set WIN32 for windows build
2 parents 9db3b56 + fcd621f commit 5f27e7e

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ bld/
1111
[Oo]bj/
1212
[Oo]ut/
1313

14-
# Visual Studio
14+
# Visual Studio
1515
.vs/
1616
.vscode/
1717

@@ -55,4 +55,5 @@ bld/
5555
*.app
5656
*.zip
5757
*.rar
58-
.DS_Store
58+
.DS_Store
59+
.cache/

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)