File tree 3 files changed +431
-9
lines changed
3 files changed +431
-9
lines changed Original file line number Diff line number Diff line change 5
5
/.vs
6
6
/CMakeSettings.json
7
7
* .bin
8
- /include /cista /reflection /to_tuple.h
Original file line number Diff line number Diff line change @@ -26,18 +26,21 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
26
26
endif ()
27
27
28
28
option (CISTA_COVERAGE "generate coverage report" OFF )
29
-
30
- add_subdirectory (tools/to_tuple_generator EXCLUDE_FROM_ALL )
31
- add_custom_target (generate_to_tuple
32
- COMMAND to_tuple_generator
33
- 64 # max number of supported member fields
34
- > ${CMAKE_CURRENT_SOURCE_DIR} /include /cista/reflection/to_tuple.h
35
- )
29
+ option (CISTA_GENERATE_TO_TUPLE "generate include/cista/reflection/to_tuple.h" OFF )
36
30
37
31
add_library (cista INTERFACE )
38
32
target_include_directories (cista INTERFACE include )
39
33
target_compile_features (cista INTERFACE cxx_std_17)
40
- add_dependencies (cista generate_to_tuple)
34
+
35
+ if (${CISTA_GENERATE_TO_TUPLE} )
36
+ add_subdirectory (tools/to_tuple_generator EXCLUDE_FROM_ALL )
37
+ add_custom_target (generate_to_tuple
38
+ COMMAND to_tuple_generator
39
+ 64 # max number of supported member fields
40
+ > ${CMAKE_CURRENT_SOURCE_DIR} /include /cista/reflection/to_tuple.h
41
+ )
42
+ add_dependencies (cista generate_to_tuple)
43
+ endif ()
41
44
42
45
add_subdirectory (tools/doctest EXCLUDE_FROM_ALL )
43
46
You can’t perform that action at this time.
0 commit comments