summaryrefslogtreecommitdiffhomepage
path: root/eigen/cmake/FindAdolc.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'eigen/cmake/FindAdolc.cmake')
-rw-r--r--eigen/cmake/FindAdolc.cmake20
1 files changed, 20 insertions, 0 deletions
diff --git a/eigen/cmake/FindAdolc.cmake b/eigen/cmake/FindAdolc.cmake
new file mode 100644
index 0000000..1a7ff36
--- /dev/null
+++ b/eigen/cmake/FindAdolc.cmake
@@ -0,0 +1,20 @@
+
+if (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
+ set(ADOLC_FIND_QUIETLY TRUE)
+endif (ADOLC_INCLUDES AND ADOLC_LIBRARIES)
+
+find_path(ADOLC_INCLUDES
+ NAMES
+ adolc/adouble.h
+ PATHS
+ $ENV{ADOLCDIR}
+ ${INCLUDE_INSTALL_DIR}
+)
+
+find_library(ADOLC_LIBRARIES adolc PATHS $ENV{ADOLCDIR} ${LIB_INSTALL_DIR})
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(ADOLC DEFAULT_MSG
+ ADOLC_INCLUDES ADOLC_LIBRARIES)
+
+mark_as_advanced(ADOLC_INCLUDES ADOLC_LIBRARIES)