Skip to content

Commit

Permalink
default to_tuple.h
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Sep 15, 2019
1 parent 8c9e002 commit 27ee0b1
Show file tree
Hide file tree
Showing 3 changed files with 431 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@
/.vs
/CMakeSettings.json
*.bin
/include/cista/reflection/to_tuple.h
19 changes: 11 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,21 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
endif()

option(CISTA_COVERAGE "generate coverage report" OFF)

add_subdirectory(tools/to_tuple_generator EXCLUDE_FROM_ALL)
add_custom_target(generate_to_tuple
COMMAND to_tuple_generator
64 # max number of supported member fields
> ${CMAKE_CURRENT_SOURCE_DIR}/include/cista/reflection/to_tuple.h
)
option(CISTA_GENERATE_TO_TUPLE "generate include/cista/reflection/to_tuple.h" OFF)

add_library(cista INTERFACE)
target_include_directories(cista INTERFACE include)
target_compile_features(cista INTERFACE cxx_std_17)
add_dependencies(cista generate_to_tuple)

if (${CISTA_GENERATE_TO_TUPLE})
add_subdirectory(tools/to_tuple_generator EXCLUDE_FROM_ALL)
add_custom_target(generate_to_tuple
COMMAND to_tuple_generator
64 # max number of supported member fields
> ${CMAKE_CURRENT_SOURCE_DIR}/include/cista/reflection/to_tuple.h
)
add_dependencies(cista generate_to_tuple)
endif()

add_subdirectory(tools/doctest EXCLUDE_FROM_ALL)

Expand Down
Loading

0 comments on commit 27ee0b1

Please sign in to comment.