Skip to content

Commit

Permalink
Refs #9782. Added CMake find module for adept
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed Jul 25, 2014
1 parent 2b005ec commit 244715a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions Code/Mantid/Build/CMake/Findadept.cmake
@@ -0,0 +1,32 @@
# Try to find the adept library (header file, library for linking)
#
# See
# http://www.met.rdg.ac.uk/clouds/adept/
#
# Once run this will define:
#
# adept_FOUND = adept library was found
#
# adept_LIBRARIES = full path to the libraries
#
# adept_INCLUDE_DIR = where to find headers
#
# Michael Wedel 07/2014
#
# http://psi.ch/mss

FIND_PATH(adept_INCLUDE_DIR
NAMES adept.h
DOC "Include directory where adept.h is located"
)

FIND_LIBRARY(adept_LIBRARIES
NAMES adept
DOC "adept dynamic library file"
)

mark_as_advanced ( adept_INCLUDE_DIR adept_LIBRARIES )

IF(adept_LIBRARIES AND adept_INCLUDE_DIR)
SET(adept_FOUND 1)
ENDIF()
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/API/CMakeLists.txt
Expand Up @@ -387,7 +387,7 @@ if ( WIN32 )
set ( WINSOCK ws2_32 )
endif ()

find_library(ADEPT NAMES adept)
find_package ( adept )

# Add a precompiled header where they are supported
enable_precompiled_headers( inc/MantidAPI/PrecompiledHeader.h SRC_FILES )
Expand Down

0 comments on commit 244715a

Please sign in to comment.