-
Notifications
You must be signed in to change notification settings - Fork 813
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
1 changed file
with
28 additions
and
0 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,28 @@ | ||
set(ASAN OFF) | ||
set(UBSAN OFF) | ||
set(DIST ON) | ||
|
||
set(DISABLE_ZERO_TIER ON) | ||
set(DISCORD_INTEGRATION OFF) | ||
set(DEVILUTIONX_SYSTEM_BZIP2 OFF) | ||
|
||
list(APPEND DEVILUTIONX_PLATFORM_LINK_LIBRARIES | ||
find_steam_game | ||
shlwapi | ||
wsock32 | ||
ws2_32 | ||
wininet | ||
) | ||
|
||
add_definitions(-DWINVER=0x0501 -D_WIN32_WINDOWS=0x0501 -D_WIN32_WINNT=0x0501) | ||
|
||
if(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") | ||
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_OPTIONS "/W3" "/Zc:__cplusplus" "/utf-8") | ||
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS) | ||
else() | ||
list(APPEND DEVILUTIONX_PLATFORM_COMPILE_OPTIONS $<$<CONFIG:Debug>:-gstabs>) | ||
endif() | ||
|
||
if(MINGW_CROSS) | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/mingw") | ||
endif() |