forked from mirror/openmw-tes3mp
2d0840cb3a
This commit changes the style of tes3mp serverside scripting mods. Short list of changes: * Break compatibility with old server mods * OOP style lua API * Basic dependency checker, allowing the installation of multiple server mods without changing configs * Remove support for C++ plugins * Change outdated LuaBridge to [sol2](https://github.com/ThePhD/sol2); * Support GCC, Clang and MSVC compilers * New environment variables: "TES3MP_SERVER_DIR" and "TES3MP_SERVER_USERDIR"; * New entity "Command controller" for registering new chat commands; * New Event system * Simplified Timer API * All Lua mods now run in their own environments * Add global namespace - Data that can be used for communicating between mods * Player and Actor inherit base class NetActor
75 lines
No EOL
2 KiB
CMake
75 lines
No EOL
2 KiB
CMake
# Comes form project edunetgames
|
|
# - Try to find RakNet
|
|
# Once done this will define
|
|
#
|
|
# RakNet_FOUND - system has RakNet
|
|
# RakNet_INCLUDES - the RakNet include directory
|
|
# RakNet_LIBRARY - Link these to use RakNet
|
|
|
|
|
|
FIND_LIBRARY (RakNet_LIBRARY_RELEASE NAMES RakNetLibStatic
|
|
PATHS
|
|
ENV LD_LIBRARY_PATH
|
|
ENV LIBRARY_PATH
|
|
/usr/lib64
|
|
/usr/lib
|
|
/usr/local/lib64
|
|
/usr/local/lib
|
|
/opt/local/lib
|
|
$ENV{RAKNET_ROOT}/lib
|
|
)
|
|
|
|
FIND_LIBRARY (RakNet_LIBRARY_DEBUG NAMES RakNetLibStatic
|
|
PATHS
|
|
ENV LD_LIBRARY_PATH
|
|
ENV LIBRARY_PATH
|
|
/usr/lib64
|
|
/usr/lib
|
|
/usr/local/lib64
|
|
/usr/local/lib
|
|
/opt/local/lib
|
|
$ENV{RAKNET_ROOT}/lib
|
|
)
|
|
|
|
FIND_PATH (RakNet_INCLUDES raknet/RakPeer.h
|
|
ENV CPATH
|
|
/usr/include
|
|
/usr/local/include
|
|
/opt/local/include
|
|
$ENV{RAKNET_ROOT}/include
|
|
)
|
|
|
|
MESSAGE(STATUS ${RakNet_INCLUDES})
|
|
MESSAGE(STATUS ${RakNet_LIBRARY_RELEASE})
|
|
|
|
IF(RakNet_INCLUDES AND RakNet_LIBRARY_RELEASE)
|
|
SET(RakNet_FOUND TRUE)
|
|
ENDIF(RakNet_INCLUDES AND RakNet_LIBRARY_RELEASE)
|
|
|
|
IF(RakNet_FOUND)
|
|
SET(RakNet_INCLUDES ${RakNet_INCLUDES}/raknet)
|
|
|
|
|
|
IF (CMAKE_CONFIGURATION_TYPES OR CMAKE_BUILD_TYPE)
|
|
SET(RakNet_LIBRARY optimized ${RakNet_LIBRARY_RELEASE} debug ${RakNet_LIBRARY_DEBUG})
|
|
IF(WIN32)
|
|
SET(RakNet_LIBRARY optimized ${RakNet_LIBRARY_RELEASE} debug ${RakNet_LIBRARY_DEBUG} ws2_32.lib)
|
|
ENDIF(WIN32)
|
|
ELSE()
|
|
# if there are no configuration types and CMAKE_BUILD_TYPE has no value
|
|
# then just use the release libraries
|
|
SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} )
|
|
IF(WIN32)
|
|
SET(RakNet_LIBRARY ${RakNet_LIBRARY_RELEASE} ws2_32.lib)
|
|
ENDIF(WIN32)
|
|
ENDIF()
|
|
|
|
IF(NOT RakNet_FIND_QUIETLY)
|
|
MESSAGE(STATUS "Found RakNet_LIBRARY_RELEASE: ${RakNet_LIBRARY_RELEASE}")
|
|
MESSAGE(STATUS "Found RakNet_INCLUDES: ${RakNet_INCLUDES}")
|
|
ENDIF(NOT RakNet_FIND_QUIETLY)
|
|
ELSE(RakNet_FOUND)
|
|
IF(RakNet_FIND_REQUIRED)
|
|
MESSAGE(FATAL_ERROR "Could not find RakNet")
|
|
ENDIF(RakNet_FIND_REQUIRED)
|
|
ENDIF(RakNet_FOUND) |