-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
36 lines (24 loc) · 933 Bytes
/
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
# Author : Weipeng He <[email protected]>
# Copyright (c) 2014, All rights reserved.
cmake_minimum_required(VERSION 2.6)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
project(notGHMM)
set(PACKAGE "notghmm")
set(PACKAGE_NAME "NotGHMM")
set(PACKAGE_VERSION "1.0.0")
set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
set(PACKAGE_URL "http://www.github.com/hwp/notghmm")
find_package(GSL REQUIRED)
include_directories(${GSL_INCLUDE_DIRS})
include(FindPkgConfig)
find_package(FLANN REQUIRED)
include_directories(${FLANN_INCLUDE_DIRS})
set(CMAKE_C_FLAGS "-Wall")
find_package(OpenMP REQUIRED)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
add_subdirectory(notghmm)
add_subdirectory(doc)
if(UNIX)
configure_file(${CMAKE_SOURCE_DIR}/notghmm.pc.cmake.in ${CMAKE_BINARY_DIR}/notghmm.pc @ONLY)
install(FILES ${CMAKE_BINARY_DIR}/notghmm.pc DESTINATION lib/pkgconfig)
endif()