You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- added CMake configuration and version configuration support (facebookarchive#132)
- added slikenet.h to simplify CMake include directory detection (facebookarchive#132)
- tweaked the way to specify the version number (facebookarchive#132)
- use version based install directories to support installing multiple versions in parallel (#222)
- use EXPORT handling for the CMake integration (facebookarchive#132)
- preps for CMake >= 2.8 make use of target_include_directories() (#222)
- minor tweaks (facebookarchive#130)
Copy file name to clipboardExpand all lines: CMakeLists.txt
+26-23Lines changed: 26 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -11,12 +11,6 @@
11
11
12
12
cmake_minimum_required(VERSION 2.6)
13
13
14
-
project(SLikeNet)
15
-
16
-
# specify the project version number
17
-
set(SLikeNet_VERSION "0.2.0")
18
-
set(SLikeNet_API_VERSION "0.2")
19
-
20
14
# CMake policy settings
21
15
if( POLICY CMP0037 )
22
16
cmake_policy(SET CMP0037 NEW) # CMake 3.0 warning: Target names should not be reserved and should match a validity pattern (aka: add_*-command target names)
@@ -25,6 +19,15 @@ if( POLICY CMP0042 )
25
19
cmake_policy(SET CMP0042 NEW) # CMake 3.0 warning: Use @rpath in a target's install name.
# note: while it's straight forward to get the SLikeNet include files directly from source (since they are cleanly organized under Source/include/slikenet/*), copying the headers in RakNet compatibility mode is not that clear
74
77
# since we are planning to add support for RakNet compatibility mode to CMake too, we keep this option
75
78
# also the planned addition for making experimental features optional/configurable would require additional logic here, so that there certainly is a purpose for this feature even with the cleaner header file structure in SLikeNet
76
-
if(SLIKENET_GENERATE_INCLUDE_ONLY_DIR)
77
-
set(SLIKENET_INCLUDE_ONLY_DIR ${SLikeNet_SOURCE_DIR}/include) # this will be visible by client code
0 commit comments