diff options
author | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2007-10-26 13:57:08 +0000 |
---|---|---|
committer | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2007-10-26 13:57:08 +0000 |
commit | b420bdb292fad020232509b0db80c154bdd0b03e (patch) | |
tree | e8dcfeae64c644585a3f7cadd48f982a3bf209cb /cmake/modules | |
parent | 7699f8751dbd1bfde35557858b477f43787ab05e (diff) | |
download | libsolv-b420bdb292fad020232509b0db80c154bdd0b03e.tar.gz libsolv-b420bdb292fad020232509b0db80c154bdd0b03e.tar.bz2 libsolv-b420bdb292fad020232509b0db80c154bdd0b03e.zip |
- add cmake support
- add ruby bindings
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindDb43.cmake | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/modules/FindDb43.cmake b/cmake/modules/FindDb43.cmake new file mode 100644 index 0000000..cc8d613 --- /dev/null +++ b/cmake/modules/FindDb43.cmake @@ -0,0 +1,28 @@ + +if(DB43_INCLUDE_DIR AND DB43_LIBRARY) + # Already in cache, be silent + set(DB43_FIND_QUIETLY TRUE) +endif(DB43_INCLUDE_DIR AND DB43_LIBRARY) + +set(DB43_LIBRARY) +set(DB43_INCLUDE_DIR) + +FIND_PATH(DB43_INCLUDE_DIR db43/db.h + /usr/include + /usr/local/include +) + +FIND_LIBRARY(DB43_LIBRARY NAMES db-4.3 + PATHS + /usr/lib + /usr/local/lib +) + +if(DB43_INCLUDE_DIR AND DB43_LIBRARY) + MESSAGE( STATUS "db-4.3 found: includes in ${DB43_INCLUDE_DIR}, library in ${DB43_LIBRARY}") + set(DB43_FOUND TRUE) +else(DB43_INCLUDE_DIR AND DB43_LIBRARY) + MESSAGE( STATUS "db-4.3 not found") +endif(DB43_INCLUDE_DIR AND DB43_LIBRARY) + +MARK_AS_ADVANCED(DB43_INCLUDE_DIR DB43_LIBRARY)
\ No newline at end of file |