1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-06-07 14:37:45 +00:00
astra/external/CMakeLists.txt

30 lines
855 B
Text
Raw Normal View History

# SPDX-FileCopyrightText: 2023 Joshua Goins <josh@redstrate.com>
# SPDX-License-Identifier: CC0-1.0
2024-01-31 17:15:43 -05:00
# See https://gitlab.kitware.com/cmake/cmake/-/issues/20312
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(BUILD_SHARED_LIBS OFF)
2023-09-23 13:16:28 -04:00
set(BUILD_TESTS OFF)
2023-10-04 16:52:33 -04:00
add_subdirectory(libcotp EXCLUDE_FROM_ALL)
include(FetchContent)
FetchContent_Declare(
Corrosion
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
2025-06-02 16:48:19 -04:00
GIT_TAG v0.5.2
)
FetchContent_MakeAvailable(Corrosion)
2022-07-20 11:44:41 -04:00
2023-09-23 13:21:08 -04:00
corrosion_import_crate(MANIFEST_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/Cargo.toml
NO_DEFAULT_FEATURES
2025-04-29 00:06:45 -04:00
CRATE_TYPES staticlib)
2022-07-20 11:44:41 -04:00
2023-09-23 13:21:08 -04:00
target_include_directories(physis INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/libphysis/target/public)
set(KDSingleApplication_QT6 ON)
2024-01-31 17:01:51 -05:00
set(KDSingleApplication_STATIC ON)
add_subdirectory(kdsingleapplication EXCLUDE_FROM_ALL)