Now during build a celero-target.cmake file exists in the build folder
and on install a ${CMAKE_INSTALL_PREFIX}/share/celero-target.cmake
exists.
This means you can import the celero target from external build of
celero.
# import target from install
include( ${SOME_INSTALL_PREFIX}/share/celero-target.cmake )
# or from a CMake build directory for Celero
include( ${SOME_PATH_TO_CELERO_BUILD}/celero-target.cmake )
target_link_libraries( my_benchmark_target PRIVATE celero )
Now during build a
celero-target.cmake
file exists in the build folder and on install a${CMAKE_INSTALL_PREFIX}/share/celero-target.cmake
exists.This means you can import the
celero
target from external build of celero.