enet: Search for shared library

This commit is contained in:
degasus 2015-03-01 02:45:04 +01:00
parent cc5a2f3411
commit 691b690afe
2 changed files with 8 additions and 3 deletions

View File

@ -536,9 +536,14 @@ include_directories(Source/Core)
add_subdirectory(Externals/Bochs_disasm)
include_directories(Externals/Bochs_disasm)
if(NOT ENET_FOUND)
if(NOT APPLE AND NOT ANDROID)
check_lib(ENET enet enet/enet.h QUIET)
endif()
if (ENET_FOUND)
message("Using shared enet")
else()
message("Using static enet from Externals")
include_directories(Externals)
include_directories(Externals/enet/include)
add_subdirectory(Externals/enet)
endif()
LIST(APPEND LIBS enet)

View File

@ -4,7 +4,7 @@
#include <functional>
#include <list>
#include <memory>
#include <enet/include/enet/enet.h>
#include <enet/enet.h>
#include "Common/Common.h"
#include "Common/Thread.h"
#include "Common/TraversalProto.h"