aboutsummaryrefslogtreecommitdiff
path: root/External/HMMER
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-12-05 04:30:32 +0000
committerMatthias Braun <matze@braunis.de>2015-12-05 04:30:32 +0000
commit5f6ac3227e21137e6f3b3581fe47c507f6d6e8b2 (patch)
tree3cda9f2520456ee4fe74ed22a15c524d96863426 /External/HMMER
parentb601a3465408c4a2494ec1fde1a3853f40ee0f98 (diff)
Add CMakeLists for External/{Nurbs|Povray|skidmarks10|HMMER}
As discussed in D14678 I am going for post-commit review as cmake/lit test-suite support is still in early development. Differential Revision: http://reviews.llvm.org/D14561 git-svn-id: https://llvm.org/svn/llvm-project/test-suite/trunk@254834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'External/HMMER')
-rw-r--r--External/HMMER/CMakeLists.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/External/HMMER/CMakeLists.txt b/External/HMMER/CMakeLists.txt
new file mode 100644
index 00000000..970363d1
--- /dev/null
+++ b/External/HMMER/CMakeLists.txt
@@ -0,0 +1,19 @@
+llvm_externals_find(TEST_SUITE_HMMER_ROOT "hmmer" "HMMER 2.3.2")
+
+if(TEST_SUITE_HMMER_ROOT)
+ set(PROG hmmcalibrate)
+ FILE(GLOB Source ${TEST_SUITE_HMMER_ROOT}/*.c)
+ list(APPEND CPPFLAGS -DSSE2 -pthread)
+ list(APPEND LDFLAGS -pthread)
+ if(ARCH STREQUAL "PowerPC")
+ list(APPEND TARGET_FLAGS -maltivec)
+ list(APPEND LCCFLAGS -maltivec)
+ endif()
+
+ if(DEFINED LARGE_PROBLEM_SIZE)
+ llvm_test_run(--fixed 400 --cpu 1 --num 200000 --seed 1158818515 ${TEST_SUITE_HMMER_ROOT}/globin.hmm)
+ else()
+ llvm_test_run(--fixed 400 --cpu 1 --num 80000 --seed 1158818515 ${TEST_SUITE_HMMER_ROOT}/globin.hmm)
+ endif()
+ llvm_multisource()
+endif()