equal
deleted
inserted
replaced
5 IF(COMMAND cmake_policy) |
5 IF(COMMAND cmake_policy) |
6 cmake_policy(SET CMP0003 NEW) |
6 cmake_policy(SET CMP0003 NEW) |
7 ENDIF(COMMAND cmake_policy) |
7 ENDIF(COMMAND cmake_policy) |
8 |
8 |
9 #detect subversion revision (if present) |
9 #detect subversion revision (if present) |
10 set(version_suffix "-dev") #UNSET THIS VARIABLE AT RELEASE TIME |
10 #set(version_suffix "-dev") #UNSET THIS VARIABLE AT RELEASE TIME |
11 IF(version_suffix MATCHES "-dev") |
11 IF(version_suffix MATCHES "-dev") |
12 set(HW_DEV true) |
12 set(HW_DEV true) |
13 IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn) |
13 IF (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/.svn) |
14 FIND_PACKAGE(Subversion) |
14 FIND_PACKAGE(Subversion) |
15 IF(Subversion_FOUND) |
15 IF(Subversion_FOUND) |
150 set(SHAREPATH share/hedgewars/) |
150 set(SHAREPATH share/hedgewars/) |
151 endif() |
151 endif() |
152 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) |
152 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) |
153 |
153 |
154 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
154 set(HEDGEWARS_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") |
155 set(HEDGEWARS_PROTO_VER 30) |
155 set(HEDGEWARS_PROTO_VER 31) |
156 |
156 |
157 if(WITH_SERVER) |
157 if(WITH_SERVER) |
158 set(HAVE_NETSERVER true) |
158 set(HAVE_NETSERVER true) |
159 add_subdirectory(gameServer) |
159 add_subdirectory(gameServer) |
160 if(APPLE) |
160 if(APPLE) |