diff options
| author | untodesu <kirill@untode.su> | 2025-12-11 15:14:26 +0500 |
|---|---|---|
| committer | untodesu <kirill@untode.su> | 2025-12-11 15:14:26 +0500 |
| commit | f40d09cb8f712e87691af4912f3630d92d692779 (patch) | |
| tree | 7ac3a4168ff722689372fd489c6f94d0a2546e8f /deps/enet/CMakeLists.txt | |
| parent | 8bcbd2729388edc63c82d77d314b583af1447c49 (diff) | |
| download | voxelius-f40d09cb8f712e87691af4912f3630d92d692779.tar.bz2 voxelius-f40d09cb8f712e87691af4912f3630d92d692779.zip | |
Shuffle stuff around
- Use the new and improved hierarchy I figured out when making Prospero chat
- Re-add NSIS scripts, again from Prospero
- Update most build and utility scripts with their most recent versions
Diffstat (limited to 'deps/enet/CMakeLists.txt')
| -rw-r--r-- | deps/enet/CMakeLists.txt | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/deps/enet/CMakeLists.txt b/deps/enet/CMakeLists.txt deleted file mode 100644 index e997858..0000000 --- a/deps/enet/CMakeLists.txt +++ /dev/null @@ -1,85 +0,0 @@ -add_library(enet STATIC - "${CMAKE_CURRENT_LIST_DIR}/include/enet/callbacks.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/enet.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/list.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/protocol.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/time.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/types.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/unix.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/utility.h" - "${CMAKE_CURRENT_LIST_DIR}/include/enet/win32.h" - "${CMAKE_CURRENT_LIST_DIR}/src/callbacks.c" - "${CMAKE_CURRENT_LIST_DIR}/src/compress.c" - "${CMAKE_CURRENT_LIST_DIR}/src/host.c" - "${CMAKE_CURRENT_LIST_DIR}/src/list.c" - "${CMAKE_CURRENT_LIST_DIR}/src/packet.c" - "${CMAKE_CURRENT_LIST_DIR}/src/peer.c" - "${CMAKE_CURRENT_LIST_DIR}/src/protocol.c" - "${CMAKE_CURRENT_LIST_DIR}/src/unix.c" - "${CMAKE_CURRENT_LIST_DIR}/src/win32.c") -target_include_directories(enet PUBLIC "${CMAKE_CURRENT_LIST_DIR}/include") -set_target_properties(enet PROPERTIES FOLDER Dependencies) - -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() |
