1 # - Try to find SolveSpace
2 # Once done this will define
4 # SOLVESPACE_FOUND - system has SolveSpace
5 # SOLVESPACE_INCLUDE_DIRS - the SolveSpace include directory
6 # SOLVESPACE_LIBRARIES - Link these to use SolveSpace
8 #=============================================================================
9 ## Copyright (C) 2014-20xx CEA/DEN, EDF R&D
10 #=============================================================================
12 IF(NOT SOLVESPACE_FIND_QUIETLY)
13 MESSAGE(STATUS "Try to find SolveSpace at $ENV{SOLVESPACE_ROOT_DIR}...")
16 FIND_PATH(SOLVESPACE_INCLUDE_DIR NAMES slvs.h
17 HINTS ENV SOLVESPACE_ROOT_DIR
21 FIND_LIBRARY(SOLVESPACE_LIBRARY NAMES slvs
22 HINTS ENV SOLVESPACE_ROOT_DIR
26 SET(SOLVESPACE_INCLUDE_DIRS ${SOLVESPACE_INCLUDE_DIR})
27 SET(SOLVESPACE_LIBRARIES ${SOLVESPACE_LIBRARY})
29 # handle the QUIETLY and REQUIRED arguments and set SOLVESPACE_FOUND to TRUE
30 # if all listed variables are TRUE
31 INCLUDE(FindPackageHandleStandardArgs)
32 FIND_PACKAGE_HANDLE_STANDARD_ARGS(SolveSpace
33 REQUIRED_VARS SOLVESPACE_LIBRARY SOLVESPACE_INCLUDE_DIR)
35 MARK_AS_ADVANCED(SOLVESPACE_LIBRARY SOLVESPACE_INCLUDE_DIR)