Skip to content
  •  
  •  
  •  
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# license found in the license.txt file in the root directory of this source tree.
#

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.12)

# CMake policy settings
if( POLICY CMP0037 )
Expand All @@ -18,14 +18,10 @@ endif()
if( POLICY CMP0042 )
cmake_policy(SET CMP0042 NEW) # CMake 3.0 warning: Use @rpath in a target's install name.
endif()
cmake_policy(SET CMP0048 NEW)

project(SLikeNet)
project(SLikeNet VERSION 0.2.0)

# version number
set(SLikeNet_VERSION_MAJOR "0")
set(SLikeNet_VERSION_MINOR "2")
set(SLikeNet_VERSION_PATCH "0")
set(SLikeNet_VERSION ${SLikeNet_VERSION_MAJOR}.${SLikeNet_VERSION_MINOR}.${SLikeNet_VERSION_PATCH})
set(SLikeNet_API_VERSION ${SLikeNet_VERSION_MAJOR}.${SLikeNet_VERSION_MINOR})

# explicitly enable @rpath in the install name for any shared library being built (for cmake >=2.8.12 and <3.0 - it's enabled by default for >= 3.0)
Expand Down
1 change: 0 additions & 1 deletion DependentExtensions/Lobby2/Lobby2ResultCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef __LOBBY_2_RESULT_CODE_H
#define __LOBBY_2_RESULT_CODE_H

#include "slikenet/defines.h" // used for SLNet -> RakNet namespace change in RAKNET_COMPATIBILITY mode
namespace SLNet
{

Expand Down
1 change: 0 additions & 1 deletion DependentExtensions/Lobby2/Rooms/RoomsErrorCodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#ifndef __ROOMS_ERROR_CODES_H
#define __ROOMS_ERROR_CODES_H

#include "slikenet/defines.h" // used for SLNet -> RakNet namespace change in RAKNET_COMPATIBILITY mode
namespace SLNet
{

Expand Down
2 changes: 1 addition & 1 deletion Lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# license found in the license.txt file in the root directory of this source tree.
#

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.12)

set(SLIKENET_INTERNAL_INCLUDE_DIRS
${SLikeNet_SOURCE_DIR}/Source/include
Expand Down
17 changes: 5 additions & 12 deletions Lib/LibStatic/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
# license found in the license.txt file in the root directory of this source tree.
#

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.12)

project(SLikeNetLibStatic)
cmake_policy(SET CMP0048 NEW)

project(SLikeNetLibStatic VERSION ${SLikeNet_VERSION})

FILE(GLOB ALL_HEADER_SRCS ${SLikeNet_SOURCE_DIR}/Source/include/slikenet/*.h)
FILE(GLOB ALL_COMPATIBILITY_HEADER_SRC ${SLikeNet_SOURCE_DIR}/Source/*.h)
Expand All @@ -21,19 +23,10 @@ FILE(GLOB CRYPTO_CPP_SRCS ${SLikeNet_SOURCE_DIR}/Source/src/crypto/*.cpp)

add_library(SLikeNetLibStatic STATIC ${ALL_CPP_SRCS} ${CRYPTO_CPP_SRCS} ${ALL_HEADER_SRCS})

#if(NOT (CMAKE_VERSION VERSION_LESS 2.8))
# target_include_directories is only supported since CMake 2.8
# target_include_directories(SLikeNetLibStatic PUBLIC
# $<BUILD_INTERFACE:${SLIKENET_INTERNAL_INCLUDE_DIRS}>
# $<INSTALL_INTERFACE:include/slikenet-${SLikeNet_VERSION}>
# )
#else()
include_directories(${SLIKENET_INTERNAL_INCLUDE_DIRS})
#endif()
include_directories(${SLIKENET_INTERNAL_INCLUDE_DIRS})

# set the version number
set_target_properties(SLikeNetLibStatic PROPERTIES
VERSION ${SLikeNet_VERSION}
SOVERSION ${SLikeNet_API_VERSION}
)

Expand Down
1 change: 0 additions & 1 deletion Samples/CrashReporter/CrashReporter.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
// #include "DbgHelp.h"
// Link with Dbghelp.lib ws2_32.lib

#include "slikenet/defines.h" // used for SLNet -> RakNet namespace change in RAKNET_COMPATIBILITY mode
namespace SLNet {

// Possible actions to take on a crash. If you want to restart the app as well, see the CrashRelauncher sample.
Expand Down
10 changes: 0 additions & 10 deletions Source/AutopatcherPatchContext.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/AutopatcherRepositoryInterface.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/Base64Encoder.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/BitStream.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CCRakNetSlidingWindow.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CCRakNetUDT.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CheckSum.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CloudClient.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CloudCommon.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CloudServer.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/CommandParserInterface.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/ConnectionGraph2.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/ConsoleServer.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DR_SHA1.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_BPlusTree.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_BinarySearchTree.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_BytePool.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_ByteQueue.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_Hash.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_Heap.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_HuffmanEncodingTree.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_HuffmanEncodingTreeFactory.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_HuffmanEncodingTreeNode.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_LinkedList.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_List.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_Map.h

This file was deleted.

10 changes: 0 additions & 10 deletions Source/DS_MemoryPool.h

This file was deleted.

Loading