Skip to content
Snippets Groups Projects
Commit 1bdb0aef authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Swap two packages to cmake fetchcontent

parent 3e43ad1b
No related branches found
No related tags found
No related merge requests found
......@@ -93,40 +93,6 @@
<key>version</key>
<string>2.0.5</string>
</map>
<key>abseil-cpp</key>
<map>
<key>canonical_repo</key>
<string>https://bitbucket.org/alchemyviewer/3p-abseil-src</string>
<key>copyright</key>
<string>Copyright 2018 The Abseil Authors.</string>
<key>description</key>
<string>Abseil Common Libraries</string>
<key>license</key>
<string>Apache 2.0</string>
<key>license_file</key>
<string>LICENSES/abseil-cpp.txt</string>
<key>name</key>
<string>abseil-cpp</string>
<key>platforms</key>
<map>
<key>common</key>
<map>
<key>archive</key>
<map>
<key>hash</key>
<string>1a593007e526383f15755ff6437f9fe0</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/abseil-cpp/common/abseil_cpp-debac94.2-common-2.tar.bz2</string>
</map>
<key>name</key>
<string>common</string>
</map>
</map>
<key>version</key>
<string>debac94.2</string>
</map>
<key>apr_suite</key>
<map>
<key>copyright</key>
......@@ -869,40 +835,6 @@
<key>version</key>
<string>2.00.03.192211300</string>
</map>
<key>fmtlib-src</key>
<map>
<key>canonical_repo</key>
<string>https://git.alchemyviewer.org/alchemy/thirdparty/3p-fmtlib-src</string>
<key>copyright</key>
<string>Copyright (c) 2012 - present, Victor Zverovich</string>
<key>description</key>
<string>A modern formatting library</string>
<key>license</key>
<string>MIT</string>
<key>license_file</key>
<string>LICENSES/fmtlib.txt</string>
<key>name</key>
<string>fmtlib-src</string>
<key>platforms</key>
<map>
<key>common</key>
<map>
<key>archive</key>
<map>
<key>hash</key>
<string>ba4c1e2ed2a1640823a932f2c4d88000</string>
<key>hash_algorithm</key>
<string>md5</string>
<key>url</key>
<string>https://pkg.alchemyviewer.org/repository/autobuild-external/fmtlib-src/common/fmtlib_src-6.0.0.1-common-1.tar.bz2</string>
</map>
<key>name</key>
<string>common</string>
</map>
</map>
<key>version</key>
<string>6.0.0.1</string>
</map>
<key>fontconfig</key>
<map>
<key>copyright</key>
......
......@@ -19,19 +19,11 @@ endif (NOT CMAKE_BUILD_TYPE)
include(Variables)
include(00-Common)
include(BuildVersion)
include(Abseil-CPP)
include(FmtLib)
include(CTest)
# Dependencies
add_subdirectory(${ABSEIL_SRC_DIR} ${ABSEIL_BIN_DIR})
target_compile_options(absl_strings PRIVATE /wd4018)
target_compile_options(absl_str_format_internal PRIVATE /wd4018)
target_compile_options(absl_flags_usage_internal PRIVATE /wd4018)
add_subdirectory(${FMT_SRC_DIR} ${FMT_BIN_DIR})
add_subdirectory(deps)
add_subdirectory(cmake)
add_subdirectory(${LIBS_OPEN_PREFIX}llaudio)
add_subdirectory(${LIBS_OPEN_PREFIX}llappearance)
add_subdirectory(${LIBS_OPEN_PREFIX}llcharacter)
......
# -*- cmake -*-
include(Prebuilt)
set(BUILD_TESTING OFF)
use_prebuilt_binary(abseil-cpp)
set(ABSEIL_SRC_DIR ${LIBS_PREBUILT_DIR}/abseil-cpp)
set(ABSEIL_BIN_DIR ${CMAKE_BINARY_DIR}/abseil-cpp)
......@@ -6,7 +6,6 @@ set(cmake_SOURCE_FILES
CMakeLists.txt
00-Common.cmake
Abseil-CPP.cmake
APR.cmake
Audio.cmake
Boost.cmake
......@@ -33,7 +32,6 @@ set(cmake_SOURCE_FILES
FindXmlRpcEpi.cmake
FindZLIB.cmake
FMODSTUDIO.cmake
FmtLib.cmake
FreeType.cmake
GeneratePrecompiledHeader.cmake
GLM.cmake
......
# -*- cmake -*-
include(Prebuilt)
use_prebuilt_binary(fmtlib-src)
set(FMT_SRC_DIR ${LIBS_PREBUILT_DIR}/fmt)
set(FMT_BIN_DIR ${CMAKE_BINARY_DIR}/fmt)
......@@ -37,6 +37,7 @@ set(VIEWER_PREFIX)
set(INTEGRATION_TESTS_PREFIX)
option(LL_TESTS "Build and run unit and integration tests (disable for build timing runs to reduce variation" OFF)
option(BUILD_TESTING "Build test suite" OFF)
option(UNATTENDED "Disable use of uneeded tooling for automated builds" OFF)
# Compiler and toolchain options
......
project(deps)
include(FetchContent)
set(CMAKE_FOLDER "Third Party")
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.10.0
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
FetchContent_Declare(
fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt.git
GIT_TAG 7512a55aa3ae309587ca89668ef9ec4074a51a1f
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
FetchContent_Declare(
absl
GIT_REPOSITORY https://github.com/abseil/abseil-cpp.git
GIT_TAG e9f9000c7c80993cb589d011616b7a8016e42f4a
GIT_SHALLOW TRUE
GIT_PROGRESS TRUE
)
# This is a hack because absl has dumb cmake
set(OLD_BUILD_TEST ${BUILD_TESTING})
set(BUILD_TESTING OFF)
FetchContent_MakeAvailable(absl)
set(BUILD_TESTING ${OLD_BUILD_TEST})
# Supress warnings inside abseil under MSVC
if(WINDOWS)
target_compile_options(absl_strings PRIVATE /wd4018)
target_compile_options(absl_str_format_internal PRIVATE /wd4018)
target_compile_options(absl_flags_usage_internal PRIVATE /wd4018)
endif()
if (BUILD_TESTING)
FetchContent_MakeAvailable(Catch2)
endif()
#Download the rest of the libraries
FetchContent_MakeAvailable(fmt)
set(CMAKE_FOLDER "")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment