2 # Drat2Er_FOUND - system has Drat2Er lib
3 # Drat2Er_INCLUDE_DIR - the Drat2Er include directory
4 # Drat2Er_LIBRARIES - Libraries needed to use Drat2Er
7 # Check default location of Drat2Er built with contrib/get-drat2er.
8 # If the user provides a directory we will not search the default paths and
9 # fail if Drat2Er was not found in the specified directory.
11 set(Drat2Er_HOME ${PROJECT_SOURCE_DIR}/drat2er/build/install)
14 find_path(Drat2Er_INCLUDE_DIR
16 PATHS ${Drat2Er_HOME}/include
18 find_library(Drat2Er_LIBRARIES
20 PATHS ${Drat2Er_HOME}/lib
22 find_library(DratTrim_LIBRARIES
24 PATHS ${Drat2Er_HOME}/lib
27 include(FindPackageHandleStandardArgs)
28 find_package_handle_standard_args(Drat2Er
30 Drat2Er_INCLUDE_DIR Drat2Er_LIBRARIES DratTrim_LIBRARIES)
32 mark_as_advanced(Drat2Er_INCLUDE_DIR Drat2Er_LIBRARIES DratTrim_LIBRARIES)
34 message(STATUS "Found Drat2Er libs: ${Drat2Er_LIBRARIES}")
36 if(DratTrim_LIBRARIES)
37 message(STATUS "Found DratTrim libs: ${DratTrim_LIBRARIES}")
38 list(APPEND Drat2Er_LIBRARIES ${DratTrim_LIBRARIES})