forked from A-23187/AIMSwitcher
-
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.
feat: set to win32 to hide console; use cmake to build; add some params.
- Loading branch information
Showing
7 changed files
with
143 additions
and
261 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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>" | ||
) |
Oops, something went wrong.