- 
                Notifications
    
You must be signed in to change notification settings  - Fork 21
 
Including Hydra in a CMake project
        Antonio Augusto Alves Junior edited this page Mar 4, 2018 
        ·
        3 revisions
      
    The FindHydra macro is implemented in the file FindHydra.cmake and can be found in tools subdirectory.
This module tries to find the Hydra header files and extrats their version.  It will set the following variables:
- HYDRA_FOUND - Set ON if Hydra headers are found, otherwise OFF.
 - HYDRA_INCLUDE_DIR - Include directory for hydra header files. (All header files will actually be in the hydra subdirectory.)
 - HYDRA_VERSION - Version of hydra in the form "major.minor.patch".
 
Place the file FindHydra.cmake in the CMAKE_MODULE_PATH of your project and add the following lines to your project's CMakeLists.txt :
...
# get Hydra
find_package(Hydra REQUIRED)
 IF(Hydra_FOUND)
  include_directories(${Hydra_INCLUDE_DIR})
 ENDIF(Hydra_FOUND)
...