message(FATAL_ERROR "Test should be enabled to measure test coverage")
endif(${ENABLE_COVERAGE} AND NOT ${ENABLE_TEST})
+option(ENABLE_EXAMPLE_BUILD "Build examples" ON)
+
###
### Function
###
endif(ENABLE_COVERAGE)
endfunction(add_nncc_library)
+function(add_nncc_example_executable)
+ if(ENABLE_EXAMPLE_BUILD)
+ add_executable(${ARGV})
+ endif(ENABLE_EXAMPLE_BUILD)
+endfunction(add_nncc_example_executable)
+
+function(nncc_example_link_libraries)
+ if(ENABLE_EXAMPLE_BUILD)
+ target_link_libraries(${ARGV})
+ endif(ENABLE_EXAMPLE_BUILD)
+endfunction(nncc_example_link_libraries)
+
function(add_nncc_test)
if(ENABLE_TEST)
add_executable(${ARGV})