Some more CMake white space formatting

- tabs to spaces
 - use Unix line endings everywhere
 - newline at end of file
 - remove trailing white space
 - no space between keywords and opening parenthesis
 - use 2 spaces to indent
This commit is contained in:
Thomas Otto 2024-04-21 11:02:27 +02:00
parent 8e531a5496
commit 00389c50ea
48 changed files with 828 additions and 816 deletions

View File

@ -273,9 +273,7 @@ set (CPPS
voice.cpp
weapon.cpp
WeaponFire.cpp
weather.cpp
)
weather.cpp)
if(WIN32)
set(PLATFORM_LIBS dd_sndlib dd_grwin32 dd_vidwin32 ddio_win win32 wsock32.lib winmm.lib Glu32.lib

View File

@ -1,4 +1,15 @@
set(HEADERS ddio_lnx.h)
set(CPPS lnxfile.cpp lnxforcefeedback.cpp lnxio.cpp sdljoy.cpp lnxkey.cpp lnxkey_null.cpp lnxmouse.cpp lnxtimer.cpp lnxkey_raw.cpp lnxcdrom.cpp lnxkey_sdl.cpp)
set(CPPS
lnxfile.cpp
lnxforcefeedback.cpp
lnxio.cpp
sdljoy.cpp
lnxkey.cpp
lnxkey_null.cpp
lnxmouse.cpp
lnxtimer.cpp
lnxkey_raw.cpp
lnxcdrom.cpp
lnxkey_sdl.cpp)
add_library(ddio_lnx STATIC ${HEADERS} ${CPPS})

View File

@ -1,4 +1,5 @@
set(HEADERS mvegfx.h
set(HEADERS
mvegfx.h
mvelibi.h
mvelibl.h
platform.h

View File

@ -1,6 +1,4 @@
set(HEADERS)
set (CPPS
lnxcontroller.cpp
)
set(CPPS lnxcontroller.cpp)
add_library(lnxcontroller STATIC ${HEADERS} ${CPPS})

View File

@ -1,4 +1,13 @@
set(HEADERS dyna_pthread.h dyna_xext.h dyna_xwin.h lnxdsound.h mvegfx.h mvelibi.h mvelibl.h snd8to16.h )
set(HEADERS
dyna_pthread.h
dyna_xext.h
dyna_xwin.h
lnxdsound.h
mvegfx.h
mvelibi.h
mvelibl.h
snd8to16.h)
set(CPPS
lnxdraw.cpp
lnxdsound.cpp

View File

@ -1,4 +1,5 @@
set(HEADERS doorpage.h
set(HEADERS
doorpage.h
gamefilepage.h
genericpage.h
megapage.h

View File

@ -3,7 +3,6 @@ set(HEADERS)
set(CPPS
CFtp.cpp
Chttpget.cpp
inetgetfile.cpp
)
inetgetfile.cpp)
add_library(inetfile STATIC ${HEADERS} ${CPPS})

View File

@ -1,8 +1,8 @@
set(HEADERS dmfcdllinit.h
set(HEADERS
dmfcdllinit.h
dmfcinputcommands.h
dmfcinternal.h
encryption.h
)
encryption.h)
set(CPPS
dmfcbase.cpp

View File

@ -1,4 +1,3 @@
add_definitions(-DCHECKSUM=2273873307UL)
set(HEADERS)
set(CPPS)
@ -73,13 +72,11 @@ foreach(SCRIPT ${SCRIPTS})
TARGET ${SCRIPT}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${SCRIPT}> "${CMAKE_SOURCE_DIR}/scripts/data/linuxfullhog/"
COMMENT "Copying file ${SCRIPT} to hogfile directory..."
)
COMMENT "Copying file ${SCRIPT} to hogfile directory...")
add_custom_command(
TARGET ${SCRIPT}
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${SCRIPT}> "${CMAKE_SOURCE_DIR}/scripts/data/linuxdemohog/"
)
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:${SCRIPT}> "${CMAKE_SOURCE_DIR}/scripts/data/linuxdemohog/")
endif()
endforeach()
@ -96,8 +93,7 @@ if(UNIX AND NOT APPLE)
COMMAND ${CMAKE_COMMAND} -E remove "${CMAKE_SOURCE_DIR}/scripts/data/linuxfullhog/new.hog"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/scripts/data/linuxfullhog/"
DEPENDS ${SCRIPTS}
COMMENT "Building platform specific hog."
)
COMMENT "Building platform specific hog.")
add_custom_target("DemoLinuxHog"
ALL
COMMAND ${HOGBUILDCMD} "--makehog" "d3linuxdemohog.txt"
@ -106,6 +102,5 @@ if(UNIX AND NOT APPLE)
COMMAND ${CMAKE_COMMAND} -E remove "${CMAKE_SOURCE_DIR}/scripts/data/linuxdemohog/new.hog"
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/scripts/data/linuxdemohog/"
DEPENDS ${SCRIPTS}
COMMENT "Building platform specific hog."
)
COMMENT "Building platform specific hog.")
endif()

View File

@ -1,4 +1,5 @@
set(HEADERS infblock.h
set(HEADERS
infblock.h
infcodes.h
inffast.h
inffixed.h
@ -15,7 +16,6 @@ set(CPPS
inffast.c
inflate.c
inftrees.c
infutil.c
)
infutil.c)
add_library(unzip STATIC ${HEADERS} ${CPPS})