Browse Source
1. Platform and toolchain files are now all under `platforms/`, with a
single `CMake/platforms/${platform}.cmake` per platform.
2. Custom functions/macros are under `functions/`.
3. Finder modules are in `/finders`.
pull/3688/head
68 changed files with 82 additions and 85 deletions
@ -1,11 +1,11 @@ |
|||||||
include(FetchContent_MakeAvailableExcludeFromAll) |
include(functions/FetchContent_MakeAvailableExcludeFromAll) |
||||||
|
|
||||||
include(FetchContent) |
include(FetchContent) |
||||||
FetchContent_Declare(find_steam_game |
FetchContent_Declare(find_steam_game |
||||||
URL https://github.com/cxong/find_steam_game/archive/94e9046bcf94a655bdc051b6e6662fabd18e3f30.zip |
URL https://github.com/cxong/find_steam_game/archive/94e9046bcf94a655bdc051b6e6662fabd18e3f30.zip |
||||||
URL_HASH MD5=c2742aff3d2a2dd162200fdab1b2b4a4 |
URL_HASH MD5=c2742aff3d2a2dd162200fdab1b2b4a4 |
||||||
) |
) |
||||||
FetchContent_MakeAvailableExcludeFromAll(find_steam_game) |
FetchContent_MakeAvailableExcludeFromAll(find_steam_game) |
||||||
|
|
||||||
add_library(find_steam_game INTERFACE) |
add_library(find_steam_game INTERFACE) |
||||||
target_include_directories(find_steam_game INTERFACE ${find_steam_game_SOURCE_DIR}) |
target_include_directories(find_steam_game INTERFACE ${find_steam_game_SOURCE_DIR}) |
||||||
|
|||||||
@ -1,3 +0,0 @@ |
|||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) |
|
||||||
message(WARNING [[In-source build detected, please eg. create a new directory and use `cmake ..`]]) |
|
||||||
endif() |
|
||||||
@ -1,3 +1,5 @@ |
|||||||
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/switch") |
||||||
|
|
||||||
set(ASAN OFF) |
set(ASAN OFF) |
||||||
set(UBSAN OFF) |
set(UBSAN OFF) |
||||||
|
|
||||||
@ -1,5 +0,0 @@ |
|||||||
# Enables a number of header file definitions required by ASIO |
|
||||||
target_compile_definitions(asio INTERFACE _DEFAULT_SOURCE=ON) |
|
||||||
|
|
||||||
# Missing headers and declarations provided by DevilutionX |
|
||||||
target_include_directories(asio BEFORE INTERFACE ${CMAKE_CURRENT_LIST_DIR}/asio/include) |
|
||||||
Loading…
Reference in new issue