-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
2,769 additions
and
1,113 deletions.
There are no files selected for viewing
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,13 @@ | ||
--- | ||
Language: Cpp | ||
BasedOnStyle: LLVM | ||
SortIncludes: true | ||
ColumnLimit: 0 | ||
UseTab: Never | ||
TabWidth: 4 | ||
IndentWidth: 4 | ||
BreakBeforeBraces: Allman | ||
AccessModifierOffset: -2 | ||
AllowShortLambdasOnASingleLine: None | ||
SpacesBeforeTrailingComments: 1 | ||
--- |
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
out/ | ||
tmp/ | ||
build/ |
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
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
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
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
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
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,49 @@ | ||
|
||
cmake_minimum_required(VERSION 3.15) | ||
|
||
project(pvztoolkit) | ||
|
||
# set(CMAKE_BUILD_TYPE MinSizeRel) | ||
# set(FLTK_DIR "C:/Dev/fltk_1.4.0/msvc2017_x86/static/CMake") | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>") | ||
|
||
find_package(FLTK CONFIG REQUIRED) | ||
|
||
aux_source_directory(./src PZTK_SRCS) | ||
add_executable(pvztoolkit WIN32 ${PZTK_SRCS}) | ||
|
||
# target_include_directories( | ||
# pvztoolkit PRIVATE | ||
# ./inc | ||
# ) | ||
|
||
target_sources( | ||
pvztoolkit PRIVATE | ||
./res/version.rc | ||
./res/pvztoolkit.manifest | ||
) | ||
|
||
target_compile_definitions( | ||
pvztoolkit PRIVATE | ||
UNICODE _UNICODE | ||
WIN32_LEAN_AND_MEAN NOMINMAX | ||
_WIN32_WINNT=0x0600 | ||
_REGEX_MAX_STACK_COUNT=0 | ||
_PVZ_BETA_LEAK_SUPPORT | ||
) | ||
|
||
target_compile_options( | ||
pvztoolkit PRIVATE | ||
/Zc:wchar_t /Zc:__cplusplus | ||
/utf-8 | ||
) | ||
|
||
target_link_libraries( | ||
pvztoolkit PRIVATE | ||
fltk::fltk fltk::images fltk::jpeg fltk::png fltk::z | ||
crypt32.lib advapi32.lib wintrust.lib shlwapi.lib | ||
) |
Oops, something went wrong.