diff --git a/generator/CMakeLists.txt b/generator/CMakeLists.txt index cb86a43..60bfb13 100644 --- a/generator/CMakeLists.txt +++ b/generator/CMakeLists.txt @@ -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 diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index 495429a..cf72ff2 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -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 $ - $) + $) else () list(APPEND PUBLIC_INCLUDE_DIRS "${CPP_UTILITIES_INCLUDE_DIRS}") endif ()