Skip to content

Commit

Permalink
⚡ cmake compile time reduce using cotire
Browse files Browse the repository at this point in the history
- Add prefix header
  - Include catch.hpp
  - Include json.hpp
    - Replace private with public for all json_unit files
- Move `unit.cpp` to an object library
- cotire issue: strip whitespace from CMAKE_INCLUDE_SYSTEM_FLAG_CXX
  • Loading branch information
tusharpm committed Feb 19, 2017
1 parent 0200f2d commit 85ce4d7
Show file tree
Hide file tree
Showing 5 changed files with 4,054 additions and 8 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ set(JSON_CONFIGVERSION_FILENAME "${JSON_PACKAGE_NAME}ConfigVersion.cmake")
set(JSON_CONFIG_DESTINATION "cmake")
set(JSON_INCLUDE_DESTINATION "include/nlohmann")

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")

# create and configure the library target
add_library(${JSON_TARGET_NAME} INTERFACE)
target_include_directories(${JSON_TARGET_NAME} INTERFACE
Expand Down
Loading

0 comments on commit 85ce4d7

Please sign in to comment.