forked from soedinglab/hh-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
84 lines (69 loc) · 2.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
cmake_minimum_required(VERSION 2.8.12)
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
SET(HAVE_SSSE3 0 CACHE BOOL "Have SSSE3")
SET(HAVE_AVX2 0 CACHE BOOL "Have AVX2")
project("hhsuite")
#set(CMAKE_BUILD_TYPE Release)
# find compiler
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# using Clang
message("-- Compilter is clang(++)")
set(CMAKE_COMPILER_IS_CLANG 1)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
# using GCC
message("-- Compilter is GNU ")
set(CMAKE_COMPILER_IS_GNUCXX 1)
set(CMAKE_COMPILER_IS_GNUCCC 1)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Intel")
# using Intel C++
set(CMAKE_COMPILER_IS_ICC 1)
endif()
set (HHSUITE_VERSION_MAJOR 3)
set (HHSUITE_VERSION_MINOR 0)
set (HHSUITE_VERSION_PATCH 0)
set (HHSUITE_DATE "15-03-2015")
#set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
INSTALL(FILES
hhsuite-userguide.pdf
LICENSE
README
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
DESTINATION ./
)
include_directories(src)
include_directories(lib/ffindex/src)
add_subdirectory(src)
add_subdirectory(data)
add_subdirectory(scripts)
#add_subdirectory(doc)
add_subdirectory(lib/ffindex)
SET (CPACK_GENERATOR "DEB;TGZ;ZIP;RPM")
SET (CPACK_DEBIAN_PACKAGE_MAINTAINER "Markus Meier")
set(CPACK_SOURCE_IGNORE_FILES
".synctex.gz$"
".toc$"
".blg$"
".bbl$"
".aux$"
".log$"
".dvi$"
".out.ps$"
"/rpm/"
"^${PROJECT_SOURCE_DIR}/build/"
"^${PROJECT_SOURCE_DIR}/.git/"
"^${PROJECT_SOURCE_DIR}/.gitignore"
"^${PROJECT_SOURCE_DIR}/.gitattributes"
"^${PROJECT_SOURCE_DIR}/.gitmodules"
"^${PROJECT_SOURCE_DIR}/.pydevproject"
"^${PROJECT_SOURCE_DIR}/.project"
"^${PROJECT_SOURCE_DIR}/.cproject"
"^${PROJECT_SOURCE_DIR}/lib/ffindex/.git"
"^${PROJECT_SOURCE_DIR}/lib/ffindex/.git"
"^${PROJECT_SOURCE_DIR}/.autotools"
"^${PROJECT_SOURCE_DIR}/README.md"
)
set (CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
set (CPACK_PACKAGE_VERSION_MAJOR "${HHSUITE_VERSION_MAJOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${HHSUITE_VERSION_MINOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${HHSUITE_VERSION_PATCH}")
INCLUDE(CPack)