summaryrefslogtreecommitdiffstats
path: root/deps/src/enet/CMakeLists.txt
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-28 01:59:49 +0500
committeruntodesu <kirill@untode.su>2025-06-28 01:59:49 +0500
commit61e5bcef2629e2d68b805a956a96fff264d4f74d (patch)
treebca3a94bac79d34e3c0db57c77604f5a823ecbda /deps/src/enet/CMakeLists.txt
parent88c01588aa0830e219eaa62588839e4d1e2883ce (diff)
downloadvoxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.tar.bz2
voxelius-61e5bcef2629e2d68b805a956a96fff264d4f74d.zip
Restructure dependencies and update to C++20
- Nuked static_assert from almost everywhere in the project - Nuked binary dependency support. Might add one later though - Separated dependency headers into a separate include subdirectory - Grafted a thirdpartylegalnotices.txt generator from RITEG - Pushed development snapshot version to 2126 (26th week of 2025)
Diffstat (limited to 'deps/src/enet/CMakeLists.txt')
-rw-r--r--deps/src/enet/CMakeLists.txt76
1 files changed, 0 insertions, 76 deletions
diff --git a/deps/src/enet/CMakeLists.txt b/deps/src/enet/CMakeLists.txt
deleted file mode 100644
index 6ff05aa..0000000
--- a/deps/src/enet/CMakeLists.txt
+++ /dev/null
@@ -1,76 +0,0 @@
-add_library(enet STATIC
- "${CMAKE_CURRENT_LIST_DIR}/callbacks.c"
- "${CMAKE_CURRENT_LIST_DIR}/compress.c"
- "${CMAKE_CURRENT_LIST_DIR}/host.c"
- "${CMAKE_CURRENT_LIST_DIR}/list.c"
- "${CMAKE_CURRENT_LIST_DIR}/packet.c"
- "${CMAKE_CURRENT_LIST_DIR}/peer.c"
- "${CMAKE_CURRENT_LIST_DIR}/protocol.c"
- "${CMAKE_CURRENT_LIST_DIR}/unix.c"
- "${CMAKE_CURRENT_LIST_DIR}/win32.c")
-target_include_directories(enet PUBLIC "${DEPS_INCLUDE_DIR}")
-set_target_properties(enet PROPERTIES FOLDER DEPS)
-
-if(WIN32)
- target_compile_definitions(enet PRIVATE _WINSOCK_DEPRECATED_NO_WARNINGS)
- target_compile_options(enet PRIVATE -W3)
- target_link_libraries(enet INTERFACE winmm ws2_32)
-else()
- target_compile_options(enet PRIVATE -Wno-error)
-endif()
-
-include(CheckFunctionExists)
-include(CheckStructHasMember)
-include(CheckTypeSize)
-
-set(CMAKE_EXTRA_INCLUDE_FILES "sys/types.h" "sys/socket.h")
-check_function_exists("fcntl" HAS_FCNTL)
-check_function_exists("poll" HAS_POLL)
-check_function_exists("getaddrinfo" HAS_GETADDRINFO)
-check_function_exists("getnameinfo" HAS_GETNAMEINFO)
-check_function_exists("gethostbyname_r" HAS_GETHOSTBYNAME_R)
-check_function_exists("gethostbyaddr_r" HAS_GETHOSTBYADDR_R)
-check_function_exists("inet_pton" HAS_INET_PTON)
-check_function_exists("inet_ntop" HAS_INET_NTOP)
-check_struct_has_member("struct msghdr" "msg_flags" "sys/types.h;sys/socket.h" HAS_MSGHDR_FLAGS)
-check_type_size("socklen_t" HAS_SOCKLEN_T BUILTIN_TYPES_ONLY)
-
-if(HAS_FCNTL)
- target_compile_definitions(enet PRIVATE HAS_FCNTL)
-endif()
-
-if(HAS_POLL)
- target_compile_definitions(enet PRIVATE HAS_POLL)
-endif()
-
-if(HAS_GETNAMEINFO)
- target_compile_definitions(enet PRIVATE HAS_GETNAMEINFO)
-endif()
-
-if(HAS_GETADDRINFO)
- target_compile_definitions(enet PRIVATE HAS_GETADDRINFO)
-endif()
-
-if(HAS_GETHOSTBYNAME_R)
- target_compile_definitions(enet PRIVATE HAS_GETHOSTBYNAME_R)
-endif()
-
-if(HAS_GETHOSTBYADDR_R)
- target_compile_definitions(enet PRIVATE HAS_GETHOSTBYADDR_R)
-endif()
-
-if(HAS_INET_PTON)
- target_compile_definitions(enet PRIVATE HAS_INET_PTON)
-endif()
-
-if(HAS_INET_NTOP)
- target_compile_definitions(enet PRIVATE HAS_INET_NTOP)
-endif()
-
-if(HAS_MSGHDR_FLAGS)
- target_compile_definitions(enet PRIVATE HAS_MSGHDR_FLAGS)
-endif()
-
-if(HAS_SOCKLEN_T)
- target_compile_definitions(enet PRIVATE HAS_SOCKLEN_T)
-endif()