Skip to content

Commit

Permalink
feat: set to win32 to hide console; use cmake to build; add some params.
Browse files Browse the repository at this point in the history
  • Loading branch information
isudfv committed Oct 8, 2023
1 parent 01ad49e commit 285f343
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 261 deletions.
31 changes: 0 additions & 31 deletions AIMSwitcher.sln

This file was deleted.

135 changes: 0 additions & 135 deletions AIMSwitcher/AIMSwitcher.vcxproj

This file was deleted.

22 changes: 0 additions & 22 deletions AIMSwitcher/AIMSwitcher.vcxproj.filters

This file was deleted.

4 changes: 0 additions & 4 deletions AIMSwitcher/AIMSwitcher.vcxproj.user

This file was deleted.

69 changes: 0 additions & 69 deletions AIMSwitcher/main.cpp

This file was deleted.

27 changes: 27 additions & 0 deletions CMakelists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.16)

project(AIMSwitcher VERSION 0.1 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(Boost COMPONENTS program_options REQUIRED)
find_package(fmt)

add_executable(AIMSwitcher
main.cpp
)

set_target_properties(AIMSwitcher PROPERTIES
WIN32_EXECUTABLE $<CONFIG:Release>
)

target_link_libraries(AIMSwitcher PRIVATE
Boost::program_options
fmt::fmt
)

target_link_options(AIMSwitcher PRIVATE
"$<$<CONFIG:Release>:/SUBSYSTEM:WINDOWS>"
"$<$<CONFIG:Release>:/ENTRY:mainCRTStartup>"
)
Loading

0 comments on commit 285f343

Please sign in to comment.