Fix indentation style in CMakeLists

This commit is contained in:
JosiahWI 2023-05-15 12:32:45 -05:00
parent 004b91358e
commit a1e4c88246
No known key found for this signature in database
GPG Key ID: C7BB8573A4ABC4B9
3 changed files with 12 additions and 12 deletions

View File

@ -13,7 +13,7 @@ set(IRRLICHTMT_REVISION 11)
# https://gitlab.kitware.com/cmake/cmake/-/merge_requests/487
project(Irrlicht
VERSION 1.9.0.${IRRLICHTMT_REVISION}
LANGUAGES C CXX
LANGUAGES C CXX
)
message(STATUS "*** Building IrrlichtMt ${PROJECT_VERSION} ***")
@ -40,7 +40,7 @@ if(NOT CMAKE_BUILD_TYPE)
endif()
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
include(CTest)
include(CTest)
endif()
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

View File

@ -308,7 +308,7 @@ set(link_libs
"${ZLIB_LIBRARY}"
"${JPEG_LIBRARY}"
"${PNG_LIBRARY}"
tinygltf::tinygltf
tinygltf::tinygltf
"$<$<BOOL:${USE_SDL2}>:${SDL2_LIBRARIES}>"
${OPENGL_LIBRARIES}
@ -331,7 +331,7 @@ set(IRRMESHLOADER
CB3DMeshFileLoader.cpp
COBJMeshFileLoader.cpp
CXMeshFileLoader.cpp
CGLTFMeshFileLoader.cpp
CGLTFMeshFileLoader.cpp
)
add_library(IRRMESHOBJ OBJECT
@ -343,13 +343,13 @@ add_library(IRRMESHOBJ OBJECT
)
get_property(tinygltf_INCLUDE_DIRS
TARGET tinygltf::tinygltf
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
TARGET tinygltf::tinygltf
PROPERTY INTERFACE_INCLUDE_DIRECTORIES
)
get_property(tinygltf_COMPILE_DEFS
TARGET tinygltf::tinygltf
PROPERTY INTERFACE_COMPILE_DEFINITIONS
TARGET tinygltf::tinygltf
PROPERTY INTERFACE_COMPILE_DEFINITIONS
)
target_include_directories(IRRMESHOBJ PRIVATE ${tinygltf_INCLUDE_DIRS})
@ -564,7 +564,7 @@ else()
endif()
if ((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) AND BUILD_TESTING)
add_subdirectory(tests)
add_subdirectory(tests)
endif()
install(TARGETS ${INSTALL_TARGETS}

View File

@ -20,7 +20,7 @@ target_link_libraries(tests
)
add_test(
NAME tests
COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
NAME tests
COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/tests"
WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}"
)