aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-04-08 10:52:39 +0000
committerastrojhgu <astrojhgu@ed2142bd-67ad-457f-ba7c-d818d4011675>2010-04-08 10:52:39 +0000
commitf7a91b266d1461bd87069ad7e027546cdc383150 (patch)
treeb8ed6538fe5f1e5c1b0cd2916462f44af7d1ea88
parentcd2802a05d0765e25aafd2e54b7271c6dd466d0a (diff)
downloadopt-utilities-f7a91b266d1461bd87069ad7e027546cdc383150.tar.bz2
git-svn-id: file:///home/svn/opt_utilities@114 ed2142bd-67ad-457f-ba7c-d818d4011675
-rw-r--r--Findltdl.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/Findltdl.cmake b/Findltdl.cmake
new file mode 100644
index 0000000..ba0edc9
--- /dev/null
+++ b/Findltdl.cmake
@@ -0,0 +1,12 @@
+find_path(LTDL_INCLUDE_DIRS ltdl.h)
+
+message(${LTDL_INCLUDE_DIRS})
+SET(LTDL_NAMES ${LTDL_NAMES} ltdl)
+MESSAGE(${LTDL_NAMES})
+FIND_LIBRARY(LTDL_LIBRARIES ${LTDL_NAMES} )
+INCLUDE(FindPackageHandleStandardArgs)
+
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(LTDL DEFAULT_MSG LTDL_LIBRARIES LTDL_INCLUDE_DIRS)
+
+MARK_AS_ADVANCED(LTDL_INCLUDE_DIRS LTDL_LIBRARIES)
+