1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-21 20:27:45 +00:00
astra/external/CMakeLists.txt

30 lines
814 B
Text
Raw Normal View History

add_subdirectory(libbaseencode)
add_subdirectory(libcotp)
2022-07-20 11:44:41 -04:00
include(FetchContent)
FetchContent_Declare(
Corrosion
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
GIT_TAG v0.2.2
2022-07-20 11:44:41 -04:00
)
FetchContent_MakeAvailable(Corrosion)
FetchContent_Declare(
libphysis
GIT_REPOSITORY https://git.sr.ht/~redstrate/libphysis
GIT_TAG 0.1.2
2022-07-20 11:44:41 -04:00
)
FetchContent_MakeAvailable(libphysis)
corrosion_import_crate(MANIFEST_PATH ${libphysis_SOURCE_DIR}/Cargo.toml)
2022-07-20 11:44:41 -04:00
2022-10-24 13:03:37 -04:00
find_package(PkgConfig REQUIRED)
pkg_check_modules(UNSHIELD REQUIRED IMPORTED_TARGET libunshield)
target_include_directories(physis INTERFACE ${libphysis_SOURCE_DIR}/target/public)
2022-10-24 13:03:37 -04:00
target_link_libraries(physis INTERFACE ${UNSHIELD_LIBRARIES})
target_link_directories(physis INTERFACE ${UNSHIELD_LIBRARY_DIRS})