mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +08:00
28 lines
1004 B
CMake
28 lines
1004 B
CMake
if (WIN32)
|
|
set(PLATFORM_FUCKING_SOURCES 3rdparty/WinCommander.cpp sys/windows/guihelper.cpp)
|
|
set(PLATFORM_FUCKING_LIBRARIES wininet wsock32 ws2_32 user32 rasapi32 iphlpapi)
|
|
|
|
include(cmake/fuck_windows/generate_product_version.cmake)
|
|
generate_product_version(
|
|
QV2RAY_RC
|
|
ICON "${CMAKE_SOURCE_DIR}/res/nekoray.ico"
|
|
NAME "nekoray"
|
|
BUNDLE "nekoray"
|
|
COMPANY_NAME "nekoray"
|
|
COMPANY_COPYRIGHT "nekoray"
|
|
FILE_DESCRIPTION "nekoray"
|
|
)
|
|
add_definitions(-DUNICODE -D_UNICODE -DNOMINMAX)
|
|
set(GUI_TYPE WIN32)
|
|
if (MINGW)
|
|
if (NOT DEFINED MinGW_ROOT)
|
|
set(MinGW_ROOT "C:/msys64/mingw64")
|
|
endif ()
|
|
else ()
|
|
add_compile_options("/utf-8")
|
|
add_compile_options("/std:c++17")
|
|
add_definitions(-D_WIN32_WINNT=0x600 -D_SCL_SECURE_NO_WARNINGS -D_CRT_SECURE_NO_WARNINGS)
|
|
list(APPEND PLATFORM_FUCKING_SOURCES sys/windows/MiniDump.cpp)
|
|
endif ()
|
|
endif ()
|