| 47 | end |
| 48 | |
| 49 | def isOpenMS(openms_path) |
| 50 | isOpenMS = TRUE |
| 51 | if not File.directory?(openms_path) |
| 52 | puts "Given path is not a directory. Abort!" |
| 53 | isOpenMS = FALSE |
| 54 | elsif not File.exist?("#{openms_path}/CMakeLists.txt") |
| 55 | puts "Given path is not the OpenMS root. Abort!" |
| 56 | isOpenMS = FALSE |
| 57 | elsif not File.exist?("#{openms_path}/src/openms/source/") |
| 58 | puts "Given path is not the OpenMS root. Abort!" |
| 59 | isOpenMS = FALSE |
| 60 | elsif not File.exist?("#{openms_path}/src/openms/include/OpenMS/") |
| 61 | puts "Given path is not the OpenMS root. Abort!" |
| 62 | isOpenMS = FALSE |
| 63 | end |
| 64 | |
| 65 | return isOpenMS |
| 66 | end |
| 67 | |
| 68 | def libExists(openms_path, lib_name) |
| 69 | libExists = TRUE |