You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
904 B
31 lines
904 B
set(ASAN OFF) |
|
set(UBSAN OFF) |
|
set(DIST ON) |
|
|
|
set(DEVILUTIONX_PLATFORM_FILE_UTIL_LINK_LIBRARIES shlwapi) |
|
set(DEVILUTIONX_PLATFORM_ASSETS_LINK_LIBRARIES find_steam_game) |
|
set(DISABLE_ZERO_TIER ON) |
|
set(DISCORD_INTEGRATION OFF) |
|
set(DEVILUTIONX_SYSTEM_BZIP2 OFF) |
|
set(DEVILUTIONX_STATIC_LIBSODIUM ON) |
|
|
|
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()
|
|
|