# dependency of the `tests` target.
##############################################################################
-function(callable_traits_add_unit_test name)
- callable_traits_add_test(${ARGV})
+function(boost_callable_traits_add_unit_test name)
+ boost_callable_traits_add_test(${ARGV})
add_dependencies(tests ${name})
if ((NOT "${name}" MATCHES "\\.ext\\.") AND (NOT "${name}" MATCHES "_mcd"))
add_dependencies(tests.quick ${name})
endif()
endfunction()
-include_directories(${callable_traits_SOURCE_DIR}/include)
+include_directories(${boost_callable_traits_SOURCE_DIR}/include)
include_directories(${CMAKE_CURRENT_LIST_DIR}/include)
include_directories(${CMAKE_CURRENT_LIST_DIR})
file(GLOB_RECURSE UNIT_TESTS "*.cpp")
foreach(_file IN LISTS UNIT_TESTS)
- callable_traits_target_name_for(_target "${_file}")
+ boost_callable_traits_target_name_for(_target "${_file}")
add_executable(${_target} EXCLUDE_FROM_ALL "${_file}")
set(lazy_target "lazy_${_target}")
add_executable(${lazy_target} EXCLUDE_FROM_ALL "${_file}")
target_compile_definitions(${lazy_target} INTERFACE -DUSE_LAZY_TYPES)
- callable_traits_add_unit_test(${_target} ${CMAKE_CURRENT_BINARY_DIR}/${_target})
- callable_traits_add_unit_test(${lazy_target} ${CMAKE_CURRENT_BINARY_DIR}/${_target})
+ boost_callable_traits_add_unit_test(${_target} ${CMAKE_CURRENT_BINARY_DIR}/${_target})
+ boost_callable_traits_add_unit_test(${lazy_target} ${CMAKE_CURRENT_BINARY_DIR}/${_target})
endforeach()
add_dependencies(callable_traits_check tests)