2022-07-04 08:30:11 +00:00
|
|
|
# Source Code for recast
|
2022-08-19 02:23:42 +00:00
|
|
|
add_subdirectory(recastnavigation)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2022-08-19 02:23:42 +00:00
|
|
|
# Turn off tinyxml2 testing
|
|
|
|
set(tinyxml2_BUILD_TESTING OFF)
|
2022-07-04 08:30:11 +00:00
|
|
|
# Source Code for tinyxml2
|
2022-08-19 02:23:42 +00:00
|
|
|
add_subdirectory(tinyxml2)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
|
|
|
# Source Code for libbcrypt
|
2022-08-19 02:23:42 +00:00
|
|
|
# Disable warning about no project version.
|
|
|
|
set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)
|
|
|
|
# Disable warning about the minimum version of cmake used for bcrypt being deprecated in the future
|
|
|
|
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "" FORCE)
|
|
|
|
|
|
|
|
add_subdirectory(libbcrypt)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2022-08-19 02:23:42 +00:00
|
|
|
# Source code for sqlite
|
|
|
|
add_subdirectory(SQLite)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2022-08-17 08:43:54 +00:00
|
|
|
# MariaDB C++ Connector
|
|
|
|
include(CMakeMariaDBLists.txt)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2022-07-16 23:24:16 +00:00
|
|
|
# Create our third party library objects
|
2022-08-17 08:43:54 +00:00
|
|
|
add_subdirectory(raknet)
|
2022-07-16 23:24:16 +00:00
|
|
|
|
|
|
|
# Download Backtrace if configured
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
|
|
include(FetchContent)
|
|
|
|
if (__include_backtrace__ AND __compile_backtrace__)
|
|
|
|
FetchContent_Declare(
|
|
|
|
backtrace
|
|
|
|
GIT_REPOSITORY https://github.com/ianlancetaylor/libbacktrace.git
|
|
|
|
)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2022-07-16 23:24:16 +00:00
|
|
|
FetchContent_MakeAvailable(backtrace)
|
|
|
|
|
|
|
|
if (NOT EXISTS ${backtrace_SOURCE_DIR}/.libs)
|
|
|
|
set(backtrace_make_cmd "${backtrace_SOURCE_DIR}/configure --prefix=\"/usr\" --enable-shared --with-system-libunwind")
|
|
|
|
|
|
|
|
execute_process(
|
|
|
|
COMMAND bash -c "cd ${backtrace_SOURCE_DIR} && ${backtrace_make_cmd} && make && cd ${CMAKE_SOURCE_DIR}"
|
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
link_directories(${backtrace_SOURCE_DIR}/.libs/)
|
|
|
|
include_directories(${backtrace_SOURCE_DIR})
|
|
|
|
endif()
|
2022-08-19 02:23:42 +00:00
|
|
|
endif()
|