|
@@ -1,14 +1,15 @@
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
project(enet C)
|
|
project(enet C)
|
|
|
|
|
|
|
|
|
|
+set(ENET_DEBUG "0" CACHE BOOL "Enable debug functionality")
|
|
|
set(ENET_STATIC "0" CACHE BOOL "Create a static library")
|
|
set(ENET_STATIC "0" CACHE BOOL "Create a static library")
|
|
|
set(ENET_SHARED "0" CACHE BOOL "Create a shared library")
|
|
set(ENET_SHARED "0" CACHE BOOL "Create a shared library")
|
|
|
set(ENET_LZ4 "0" CACHE BOOL "Add support for an optional packet-level compression")
|
|
set(ENET_LZ4 "0" CACHE BOOL "Add support for an optional packet-level compression")
|
|
|
|
|
|
|
|
if (MSVC)
|
|
if (MSVC)
|
|
|
- add_definitions(-W3)
|
|
|
|
|
|
|
+ add_definitions(-W3)
|
|
|
else()
|
|
else()
|
|
|
- add_definitions(-Wno-error)
|
|
|
|
|
|
|
+ add_definitions(-Wno-error)
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(${PROJECT_SOURCE_DIR})
|
|
include_directories(${PROJECT_SOURCE_DIR})
|
|
@@ -32,4 +33,4 @@ if (ENET_SHARED)
|
|
|
if (WIN32)
|
|
if (WIN32)
|
|
|
target_link_libraries(enet winmm ws2_32)
|
|
target_link_libraries(enet winmm ws2_32)
|
|
|
endif()
|
|
endif()
|
|
|
-endif()
|
|
|
|
|
|
|
+endif()
|