浏览代码

updated cmake

Vladyslav Hrytsenko 7 年之前
父节点
当前提交
d529f3c8ab
共有 2 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      CMakeLists.txt
  2. 0 0
      appveyor.yml

+ 9 - 0
CMakeLists.txt

@@ -26,3 +26,12 @@ if (DEFINED ENET_SHARED)
         target_link_libraries(enet winmm ws2_32)
     endif()
 endif()
+
+if (DEFINED ENET_TEST)
+    add_definitions(-DENET_IMPLEMENTATION)
+    add_executable(enet_test tes/build.c)
+
+    if (WIN32)
+        target_link_libraries(enet_test winmm ws2_32)
+    endif()
+endif()

+ 0 - 0
appveyor.yml