File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -31,30 +31,31 @@ if(INIFILE_CPP_MASTER_PROJECT)
3131 )
3232endif ()
3333
34- option (GENERATE_COVERAGE "Enable generating code coverage" ${INIFILE_CPP_MASTER_PROJECT} )
35- option (BUILD_TESTS "Enable building unit tests" ${INIFILE_CPP_MASTER_PROJECT} )
36- option (BUILD_EXAMPLES "Enable building example applications" ${INIFILE_CPP_MASTER_PROJECT} )
34+ option (INIFILE_CPP_GENERATE_COVERAGE "Enable generating code coverage" ${INIFILE_CPP_MASTER_PROJECT} )
35+ option (INIFILE_CPP_BUILD_TESTS "Enable building unit tests" ${INIFILE_CPP_MASTER_PROJECT} )
36+ option (INIFILE_CPP_BUILD_EXAMPLES "Enable building example applications" ${INIFILE_CPP_MASTER_PROJECT} )
3737
3838install (DIRECTORY include/
3939 DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
4040 FILES_MATCHING
4141 PATTERN "*.h"
4242)
4343
44- if (GENERATE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
44+ if (INIFILE_CPP_GENERATE_COVERAGE AND CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
4545 # Add required flags (GCC & LLVM/Clang)
46+ message (STATUS "[inicpp] Enabling code coverage generation" )
4647 target_compile_options (inicpp INTERFACE -O0 -g --coverage )
4748 target_link_options (inicpp INTERFACE --coverage )
4849endif ()
4950
50- if (BUILD_TESTS )
51+ if (INIFILE_CPP_BUILD_TESTS )
5152 message (STATUS "[inicpp] Building unit tests" )
5253 include (CTest )
5354 add_subdirectory (dep )
5455 add_subdirectory (test )
5556endif ()
5657
57- if (BUILD_EXAMPLES )
58+ if (INIFILE_CPP_BUILD_EXAMPLES )
5859 message (STATUS "[inicpp] Building examples" )
5960 add_subdirectory (examples )
6061endif ()
You can’t perform that action at this time.
0 commit comments