/normxcorr/trunk

To get this branch, use:
bzr branch http://suren.me/webbzr/normxcorr/trunk

« back to all changes in this revision

Viewing changes to dict_hw/CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2010-08-09 00:10:31 UTC
  • Revision ID: csa@dside.dyndns.org-20100809001031-59vi0m04osiimrvz
Timing measurements are fixed, openmp support to accelerate image reduction

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
cmake_minimum_required(VERSION 2.6.3)
 
1
cmake_minimum_required(VERSION 2.8.2)
2
2
project(dict_hw)
3
3
 
4
4
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
5
5
set(CMAKE_VERBOSE_MAKEFILE YES)
6
6
 
 
7
include(CheckIncludeFiles)
 
8
 
7
9
if (WIN32)
8
10
    set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "Build Type" FORCE)
9
11
    set(MEASURE_TIMINGS FALSE CACHE BOOL "Report execution times" FORCE)
16
18
#    set(CMAKE_BUILD_TYPE RELEASE CACHE STRING "" FORCE)
17
19
endif ()
18
20
 
 
21
set(DISABLE_OPENMP FALSE CACHE BOOL "Disable OpenMP support")
19
22
 
20
23
#find_program(SED_EXECUTABLE sed)
21
24
#find_program(LS_EXECUTABLE ls)
22
25
#find_program(HEAD_EXECUTABLE head)
23
26
#mark_as_advanced(SED_EXECUTABLE LS_EXECUTABLE HEAD_EXECUTABLE)
24
27
 
 
28
if (DISABLE_OPENMP)
 
29
    set(OPENMP_FOUND FALSE)
 
30
else (DISABLE_OPENMP)
 
31
    find_package(OpenMP)
 
32
endif (DISABLE_OPENMP)
 
33
    
25
34
find_package(GLIB2 REQUIRED)
26
35
 
27
36
set (MINIMAL_CUDA_VERSION 2.3)
84
93
    message(" * Build configuration: ${CMAKE_BUILD_TYPE}")
85
94
endif()
86
95
 
 
96
if (OPENMP_FOUND)
 
97
    message(" * OpenMP is supported")
 
98
endif (OPENMP_FOUND)
 
99
 
87
100
#message(" * CFLAGS   : ${${CFLAGS}}")
88
101
message(" * CPPFLAGS : ${${CPPFLAGS}}")
89
102
message(" * NVCCFLAGS: ${CUDA_NVCC_FLAGS}")
90
103
message("\n")
91
104
 
 
105
CHECK_INCLUDE_FILES("sys/types.h;unistd.h;sched.h" HAVE_SCHED_HEADERS)
 
106
 
 
107
 
92
108
ADD_SUBDIRECTORY(src)
93
109
 
94
110