Format CMake files with cmake-format 0.6.7

This commit is contained in:
Martchus 2020-01-26 20:42:03 +01:00
parent e7bbdd0af6
commit c68d9ea384
2 changed files with 21 additions and 14 deletions

View File

@ -45,15 +45,16 @@ if (TARGET clang-cpp)
list(APPEND PRIVATE_LIBRARIES clang-cpp LLVM)
else ()
list(
APPEND PRIVATE_LIBRARIES
clangTooling
clangFrontend
clangSerialization
clangSema
clangAST
clangLex
clangBasic
LLVM)
APPEND
PRIVATE_LIBRARIES
clangTooling
clangFrontend
clangSerialization
clangSema
clangAST
clangLex
clangBasic
LLVM)
endif ()
# also add reflective_rapidjson which is header-only but might pull additional include dirs for RapidJSON

View File

@ -14,22 +14,28 @@ set(DOC_FILES README.md)
# add JSON-specific sources
if (RapidJSON_FOUND)
list(APPEND HEADER_FILES json/reflector.h json/reflector-boosthana.h json/reflector-chronoutilities.h
json/serializable.h json/errorhandling.h)
list(
APPEND
HEADER_FILES
json/reflector.h
json/reflector-boosthana.h
json/reflector-chronoutilities.h
json/serializable.h
json/errorhandling.h)
list(APPEND TEST_SRC_FILES tests/jsonreflector.cpp tests/jsonreflector-boosthana.cpp
tests/jsonreflector-chronoutilities.cpp)
tests/jsonreflector-chronoutilities.cpp)
endif ()
# add binary (de)serialization specific sources
list(APPEND HEADER_FILES binary/reflector.h binary/reflector-boosthana.h binary/reflector-chronoutilities.h
binary/serializable.h)
binary/serializable.h)
list(APPEND TEST_SRC_FILES tests/traits.cpp tests/binaryreflector.cpp tests/binaryreflector-boosthana.cpp)
# add (only) the CMake module and include dirs for c++utilities because we're not depending on the actual library
list(APPEND CMAKE_MODULE_PATH ${CPP_UTILITIES_MODULE_DIRS})
if (CPP_UTILITIES_SOURCE_DIR)
list(APPEND PUBLIC_INCLUDE_DIRS $<BUILD_INTERFACE:${CPP_UTILITIES_SOURCE_DIR}/..>
$<INSTALL_INTERFACE:${CPP_UTILITIES_INCLUDE_DIRS}>)
$<INSTALL_INTERFACE:${CPP_UTILITIES_INCLUDE_DIRS}>)
else ()
list(APPEND PUBLIC_INCLUDE_DIRS "${CPP_UTILITIES_INCLUDE_DIRS}")
endif ()