mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
cmake: whitespace cleanup
- indentation - spaces near comments Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
ed4fbb92d0
commit
cdd84bb188
1 changed files with 69 additions and 66 deletions
|
@ -93,6 +93,7 @@ FILE(WRITE ${CMAKE_BINARY_DIR}/version.h.in "
|
||||||
#define GIT_VERSION_STRING \"@GIT_VERSION_STRING@\"
|
#define GIT_VERSION_STRING \"@GIT_VERSION_STRING@\"
|
||||||
#define CANONICAL_VERSION_STRING \"@CANONICAL_VERSION_STRING@\"
|
#define CANONICAL_VERSION_STRING \"@CANONICAL_VERSION_STRING@\"
|
||||||
")
|
")
|
||||||
|
|
||||||
FILE(WRITE ${CMAKE_BINARY_DIR}/version.cmake "
|
FILE(WRITE ${CMAKE_BINARY_DIR}/version.cmake "
|
||||||
IF (\${APPLE})
|
IF (\${APPLE})
|
||||||
SET(VER_OS darwin)
|
SET(VER_OS darwin)
|
||||||
|
@ -132,8 +133,10 @@ FILE(WRITE ${CMAKE_BINARY_DIR}/version.cmake "
|
||||||
)
|
)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
")
|
")
|
||||||
ADD_CUSTOM_TARGET(version ALL COMMAND
|
|
||||||
${CMAKE_COMMAND} -D SRC=${CMAKE_BINARY_DIR}/version.h.in
|
ADD_CUSTOM_TARGET(
|
||||||
|
version ALL COMMAND ${CMAKE_COMMAND} ${CMAKE_COMMAND}
|
||||||
|
-D SRC=${CMAKE_BINARY_DIR}/version.h.in
|
||||||
-D DST=${CMAKE_BINARY_DIR}/ssrf-version.h
|
-D DST=${CMAKE_BINARY_DIR}/ssrf-version.h
|
||||||
-D CMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
|
-D CMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
|
||||||
-P ${CMAKE_BINARY_DIR}/version.cmake
|
-P ${CMAKE_BINARY_DIR}/version.cmake
|
||||||
|
@ -432,11 +435,11 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
# # Windows bundling rules
|
# Windows bundling rules
|
||||||
# # We don't have a helpful tool like macdeployqt for Windows, so we hardcode
|
# We don't have a helpful tool like macdeployqt for Windows, so we hardcode
|
||||||
# # which libs we need.
|
# which libs we need.
|
||||||
# # "make install", copies everything into a staging area
|
# "make install", copies everything into a staging area
|
||||||
# # "make installer", uses makensis to create an installer executable
|
# "make installer", uses makensis to create an installer executable
|
||||||
set(WINDOWSSTAGING ${CMAKE_BINARY_DIR}/staging)
|
set(WINDOWSSTAGING ${CMAKE_BINARY_DIR}/staging)
|
||||||
install(DIRECTORY marbledata/maps DESTINATION ${WINDOWSSTAGING}/data)
|
install(DIRECTORY marbledata/maps DESTINATION ${WINDOWSSTAGING}/data)
|
||||||
install(DIRECTORY marbledata/bitmaps DESTINATION ${WINDOWSSTAGING}/data)
|
install(DIRECTORY marbledata/bitmaps DESTINATION ${WINDOWSSTAGING}/data)
|
||||||
|
@ -517,8 +520,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Android")
|
||||||
# # Android template directory
|
# Android template directory
|
||||||
# SET(ANDROID_PACKAGE_SOURCE_DIR, ${CMAKE_BINARY_DIR}/android)
|
SET(ANDROID_PACKAGE_SOURCE_DIR, ${CMAKE_BINARY_DIR}/android)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
|
Loading…
Reference in a new issue