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
|
|
|
|
2022-09-02 02:24:00 +00:00
|
|
|
# Source Code for libbcrypt. Uses a file glob instead to get around Windows build issues.
|
|
|
|
file(
|
|
|
|
GLOB SOURCES_LIBBCRYPT
|
|
|
|
LIST_DIRECTORIES false
|
|
|
|
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/libbcrypt/src/*.c
|
|
|
|
)
|
2023-12-31 06:26:49 +00:00
|
|
|
|
2022-09-02 02:24:00 +00:00
|
|
|
add_library(bcrypt ${SOURCES_LIBBCRYPT})
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2023-12-31 06:26:49 +00:00
|
|
|
# Because we are not using the libbcrypt CMakeLists.txt, we need to include these headers for the library to use.
|
|
|
|
# fortunately they are only needed for building the libbcrypt directory and nothing else, so these are marked private.
|
|
|
|
|
2024-03-06 02:13:24 +00:00
|
|
|
if(NOT WIN32)
|
|
|
|
target_include_directories(bcrypt PRIVATE "libbcrypt/include/bcrypt")
|
|
|
|
endif()
|
|
|
|
|
2024-06-06 09:00:44 +00:00
|
|
|
# Need to define this on Clang and GNU for 'strdup' support
|
|
|
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
|
2024-11-17 18:33:15 +00:00
|
|
|
target_compile_definitions(bcrypt PRIVATE "_POSIX_C_SOURCE=200809L")
|
2024-06-06 09:00:44 +00:00
|
|
|
endif()
|
|
|
|
|
2024-03-06 02:13:24 +00:00
|
|
|
target_include_directories(bcrypt INTERFACE "libbcrypt/include")
|
2023-12-31 06:26:49 +00:00
|
|
|
target_include_directories(bcrypt PRIVATE "libbcrypt/src")
|
|
|
|
|
2022-08-19 02:23:42 +00:00
|
|
|
# Source code for sqlite
|
|
|
|
add_subdirectory(SQLite)
|
2022-07-04 08:30:11 +00:00
|
|
|
|
2023-12-23 16:51:59 +00:00
|
|
|
# Source code for magic_enum
|
|
|
|
add_subdirectory(magic_enum)
|
|
|
|
|
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)
|
2023-12-31 06:26:49 +00:00
|
|
|
if (${INCLUDE_BACKTRACE} AND ${COMPILE_BACKTRACE})
|
2022-07-16 23:24:16 +00:00
|
|
|
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()
|
2024-02-09 15:15:28 +00:00
|
|
|
|
|
|
|
add_subdirectory(MD5)
|