DigitalInBlue / Celero

C++ Benchmark Authoring Library/Framework
Other
824 stars 95 forks source link

Added CMake exports #116

Closed Ignition closed 6 years ago

Ignition commented 6 years ago

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 )