-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (54 loc) · 1.65 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
# The name of our project is "mivt". CMakeLists files in this project can
# refer to the root source directory of the project as ${mivt_SOURCE_DIR} and
# to the root binary directory of the project as ${mivt_BINARY_DIR}.
cmake_minimum_required (VERSION 2.8)
project (mivt)
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${mivt_SOURCE_DIR}/bin )
set (CMAKE_BUILD_TYPE "Release")
# CUDA
find_package(CUDA)
if (CUDA_FOUND)
include_directories(${CUDA_INCLUDE_DIRS})
cuda_include_directories(${mivt_SOURCE_DIR}/inc)
else()
message(ERROR "CUDA NOT FOUND")
endif()
# Equalizer
find_package(Equalizer)
if (EQUALIZER_FOUND)
include_directories(${EQUALIZER_INCLUDE_DIRS})
else()
message(ERROR "EQUALIZER NOT FOUND")
endif()
#GLEW_MX
add_definitions(-DEQ_SYSTEM_INCLUDES) # get GL headers
if(GLEW_MX_FOUND)
include_directories(BEFORE SYSTEM ${GLEW_MX_INCLUDE_DIRS})
endif()
# BOOST
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost 1.36.0 COMPONENTS system filesystem program_options)
if (Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
else()
message(ERROR "Boost NOT FOUND")
endif()
# HDF5
find_package(HDF5 REQUIRED)
if (HDF5_FOUND)
include_directories(HDF5_INCLUDE_DIRS)
else()
message(ERROR "HDF5 NOT FOUND")
endif()
# FREE IMAGE
IF(FREEIMAGE_FOUND)
SET(HAVE_FREEIMAGE ${FREEIMAGE_FOUND} CACHE BOOL "Set to TRUE if FreeImage is found, FALSE otherwise")
MESSAGE(STATUS "Looking for FreeImage - found")
ELSE(FREEIMAGE_FOUND)
MESSAGE(STATUS "Looking for FreeImage - not found")
ENDIF(FREEIMAGE_FOUND)
# MIVT
include_directories(${mivt_SOURCE_DIR}/inc)
add_subdirectory(${mivt_SOURCE_DIR}/src)