Forked from
Alchemy Viewer / Alchemy Viewer
1925 commits behind, 155 commits ahead of the upstream repository.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CMakeLists.txt 1.46 KiB
project(deps)
include(00-Common)
include(FetchContent)
include(UI)
set(CMAKE_FOLDER "Third Party")
set(CMAKE_POLICY_DEFAULT_CMP0063 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
set(deps_SOURCE_FILES
CMakeLists.txt
)
set_source_files_properties(${deps_SOURCE_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
add_library(deps
../cmake/cmake_dummy.cpp
${deps_SOURCE_FILES}
)
FetchContent_Declare(
meshoptimizer
GIT_REPOSITORY https://git.alchemyviewer.org/alchemy/mirrors/meshoptimizer.git
GIT_TAG v0.20
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 10.2.1
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
# #Download the rest of the libraries
FetchContent_MakeAvailable(fmt)
set(MESHOPT_BUILD_SHARED_LIBS OFF)
FetchContent_MakeAvailable(meshoptimizer)
if(USE_TRACY)
FetchContent_Declare (
tracy
GIT_REPOSITORY https://github.com/wolfpld/tracy.git
GIT_TAG v0.10
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
set(TRACY_ON_DEMAND ON)
set(TRACY_ONLY_LOCALHOST ON)
set(TRACY_FIBERS ON)
FetchContent_MakeAvailable(tracy)
endif()
if(USE_NFD)
FetchContent_Declare(
nfd
GIT_REPOSITORY https://github.com/btzy/nativefiledialog-extended.git
GIT_TAG v1.1.1
)
set(NFD_PORTAL ON)
FetchContent_MakeAvailable(nfd)
endif()
unset(CMAKE_FOLDER)