mirror of
https://github.com/MatsuriDayo/nekoray.git
synced 2025-12-18 04:54:38 +03:00
25 lines
825 B
CMake
25 lines
825 B
CMake
set(PLATFORM_SOURCES 3rdparty/WinCommander.cpp sys/windows/guihelper.cpp sys/windows/MiniDump.cpp)
|
|
set(PLATFORM_LIBRARIES wininet wsock32 ws2_32 user32 rasapi32 iphlpapi)
|
|
|
|
include(cmake/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)
|
|
endif ()
|