stk-code_catmod/lib/enet/CMakeLists.txt
auria 2da4e7b1f6 Apply patch to make sure CMake builds static binaries of libraries
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-19 22:39:43 +00:00

28 lines
495 B
CMake

# CMakeLists.txt - enet
include_directories("include")
if(APPLE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks")
endif()
add_definitions(-DHAS_SOCKLEN_T)
add_library(enet STATIC
callbacks.c
compress.c
host.c
list.c
packet.c
peer.c
protocol.c
unix.c
win32.c
)
#if(WIN32)
# find_library(WS2_LIBRARY NAMES "ws2_32" PATHS "C:/Windows/System32")
# target_link_libraries(enet ${WS2_LIBRARY})
#endif()