/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/src/CMakeLists.txt

  • Committer: Suren A. Chilingaryan
  • Date: 2009-12-12 01:38:41 UTC
  • Revision ID: csa@dside.dyndns.org-20091212013841-feih3qa4i28x75j4
Provide stand-alone library

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SET(BUILD_SHARED_LIBS ON)
 
2
 
 
3
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
 
4
SET(CUDA_ATTACH_VS_BUILD_RULE_TO_CUDA_FILE ON)
 
5
SET(CUDA_GENERATED_OUTPUT_DIR ${CMAKE_SOURCE_DIR}/build)
 
6
#SET(CUDA_GENERATED_OUTPUT_DIR ${CMAKE_CURRENT_SOURCE_DIR}/build)
 
7
 
 
8
ADD_DEFINITIONS(
 
9
    ${DICT_HW_DEFINITIONS}
 
10
)
 
11
 
 
12
CUDA_INCLUDE_DIRECTORIES(
 
13
    ${CMAKE_CURRENT_SOURCE_DIR}
 
14
    ${CMAKE_SOURCE_DIR}
 
15
)
 
16
 
 
17
INCLUDE_DIRECTORIES(
 
18
    ${DICT_HW_INCLUDE_DIRS}
 
19
)
 
20
 
 
21
SET(HEADERS 
 
22
    dict_hw.h
 
23
    normxcorr_hw.cu.h
 
24
    normxcorr_hw_kernel.cu.h
 
25
    local_sum.cu.h
 
26
    local_sum_kernel.cu.h
 
27
    normxcorr_hw.h
 
28
    normxcorr_hw_msg.h
 
29
    helpers.h
 
30
)
 
31
 
 
32
SET(hst_cuda_SRCS
 
33
    dict_hw.cu
 
34
    validate.cpp
 
35
    ${HEADERS}
 
36
)
 
37
 
 
38
# c option is ignored by nvcc 2.2?
 
39
CUDA_ADD_LIBRARY(dict_hw ${hst_cuda_SRCS})
 
40
CUDA_ADD_CUFFT_TO_TARGET(dict_hw)
 
41
TARGET_LINK_LIBRARIES(dict_hw ${DICT_HW_LIBRARIES})
 
42
 
 
43
 
 
44
#ADD_EXECUTABLE(hst_cuda_test EXCLUDE_FROM_ALL 
 
45
#    hst_cuda_test.cpp
 
46
#    ${HEADERS}
 
47
#)
 
48
#TARGET_LINK_LIBRARIES(hst_cuda_test hst_cuda)
 
49
 
 
50
    
 
51
 
 
52
# Add a special target to clean nvcc generated files.
 
53
#CUDA_BUILD_CLEAN_TARGET()
 
54
 
 
55
# clean extra files
 
56
#FILE(GLOB EXTRA_BUILD_FILES "dict_hw.linkinfo")
 
57
SET_DIRECTORY_PROPERTIES(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES dict_hw.linkinfo)