Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 115 lines (106 sloc) 4.634 kb
77591446 »
2012-02-25 find TBB
1 SET (TBB_FOUND TRUE)
2
0ed9d8ca »
2012-04-20 Improve FindTBB and FindMKL
3 IF (NOT TBB_LINK_LIBRARIES)
3d281257 »
2012-06-23 simplify mast Cmake file
4 IF (MSVC)
5 IF (NOT TBB_LIB_PATH)
6 IF (CMAKE_CL_64)
7 SET (TBB_MSVC_LIB "intel64")
8 ELSE (CMAKE_CL_64)
9 SET (TBB_MSVC_LIB "ia32")
10 ENDIF (CMAKE_CL_64)
11 IF (MSVC_VERSION GREATER 1599)
12 SET (TBB_MSVC_LIB "${TBB_MSVC_LIB}/vc10")
13 ELSEIF (MSVC_VERSION GREATER 1499)
14 SET (TBB_MSVC_LIB "${TBB_MSVC_LIB}/vc9")
15 ELSEIF (MSVC_VERSION GREATER 1399)
16 SET (TBB_MSVC_LIB "${TBB_MSVC_LIB}/vc8")
17 ENDIF (MSVC_VERSION GREATER 1599)
18 SET (TBB_LIB_PATH "${TBB_ROOT}/lib/${TBB_MSVC_LIB}")
19 SET (TBB_DLL_PATH "${TBB_ROOT}/bin/${TBB_MSVC_LIB}")
20 ENDIF (NOT TBB_LIB_PATH)
21 ENDIF (MSVC)
dbbc6134 »
2012-04-24 cleanup cmake files
22 SET (TBB_LIB_PATH ${TBB_LIB_PATH} $ENV{TBBROOT}/lib)
23 SET (TBB_LIB_PATH ${TBB_LIB_PATH} $ENV{TBBROOT}/lib/intel64)
24 SET (TBB_LIB_PATH ${TBB_LIB_PATH} $ENV{TBBROOT}/lib/ia32)
25 SET (TBB_LIB_PATH ${TBB_LIB_PATH} /opt/intel/tbb/lib)
26 SET (TBB_LIB_PATH ${TBB_LIB_PATH} /opt/intel/tbb/lib/intel64)
27 SET (TBB_LIB_PATH ${TBB_LIB_PATH} /opt/intel/tbb/lib/ia32)
5a571bf8 »
2012-06-28 Support debug build with debug libraries
28 FIND_LIBRARY (TBB_LINK_LIBRARIES_RELEASE tbb
29 PATHS ${TBB_LIB_PATH} ENV LIBRARY_PATH)
30 FIND_LIBRARY (TBB_LINK_LIBRARIES_DEBUG tbb_debug
0ed9d8ca »
2012-04-20 Improve FindTBB and FindMKL
31 PATHS ${TBB_LIB_PATH} ENV LIBRARY_PATH)
32 ENDIF (NOT TBB_LINK_LIBRARIES)
77591446 »
2012-02-25 find TBB
33
5a571bf8 »
2012-06-28 Support debug build with debug libraries
34 IF (TBB_LINK_LIBRARIES_RELEASE AND TBB_LINK_LIBRARIES_DEBUG)
c566302c »
2012-06-28 simplify build
35 SET (TBB_LINK_LIBRARIES
36 optimized ${TBB_LINK_LIBRARIES_RELEASE}
37 debug ${TBB_LINK_LIBRARIES_DEBUG})
dbbc6134 »
2012-04-24 cleanup cmake files
38 MESSAGE (STATUS "Found TBB libraries: ${TBB_LINK_LIBRARIES}")
fe69b3fe » Yan Zhou
2012-07-13 fix Cmake scripts
39 ELSEIF (TBB_LINK_LIBRARIES_RELEASE)
40 SET (TBB_LINK_LIBRARIES ${TBB_LINK_LIBRARIES_RELEASE})
41 MESSAGE (STATUS "Found TBB libraries: ${TBB_LINK_LIBRARIES}")
5a571bf8 »
2012-06-28 Support debug build with debug libraries
42 ELSE (TBB_LINK_LIBRARIES_RELEASE AND TBB_LINK_LIBRARIES_DEBUG)
e0fff8d9 »
2012-06-23 make cmake message more unified
43 MESSAGE (STATUS "NOT Found TBB libraries")
dbbc6134 »
2012-04-24 cleanup cmake files
44 SET (TBB_FOUND FALSE)
5a571bf8 »
2012-06-28 Support debug build with debug libraries
45 ENDIF (TBB_LINK_LIBRARIES_RELEASE AND TBB_LINK_LIBRARIES_DEBUG)
dbbc6134 »
2012-04-24 cleanup cmake files
46
0ed9d8ca »
2012-04-20 Improve FindTBB and FindMKL
47 IF (NOT TBB_INCLUDE_DIR)
3d281257 »
2012-06-23 simplify mast Cmake file
48 IF (MSVC)
49 IF (NOT TBB_INC_PATH)
50 SET (TBB_INC_PATH "${TBB_ROOT}/include")
51 ENDIF (NOT TBB_INC_PATH)
52 ENDIF(MSVC)
0ed9d8ca »
2012-04-20 Improve FindTBB and FindMKL
53 SET (TBB_INC_PATH ${TBB_INC_PATH} $ENV{TBBROOT}/include)
54 FIND_PATH (TBB_INCLUDE_DIR tbb/tbb.h PATHS ${TBB_INC_PATH} ENV CPATH)
55 ENDIF (NOT TBB_INCLUDE_DIR)
e55c9308 »
2012-04-20 fix missing tbb.dll
56
dbbc6134 »
2012-04-24 cleanup cmake files
57 IF (TBB_INCLUDE_DIR)
58 MESSAGE (STATUS "Found TBB headers: ${TBB_INCLUDE_DIR}")
59 ELSE (TBB_INCLUDE_DIR)
60 MESSAGE (STATUS "NOT Found TBB headers")
61 SET (TBB_FOUND FALSE)
62 ENDIF (TBB_INCLUDE_DIR)
63
0ed9d8ca »
2012-04-20 Improve FindTBB and FindMKL
64 IF (WIN32)
6b09234e »
2012-06-29 fix debug build in msvc
65 SET (TBB_DLL_PATH ${TBB_DLL_PATH} ${TBB_ROOT}/bin)
66 IF (NOT TBB_DLL_RELEASE)
67 FIND_FILE (TBB_DLL_RELEASE tbb.dll PATHS ${TBB_DLL_PATH}
68 $ENV{TBBROOT}/bin)
69 ENDIF (NOT TBB_DLL_RELEASE)
70 IF (NOT TBB_DLL_DEBUG)
71 FIND_FILE (TBB_DLL_DEBUG tbb_debug.dll PATHS ${TBB_DLL_PATH}
72 $ENV{TBBROOT}/bin)
73 ENDIF (NOT TBB_DLL_DEBUG)
dbbc6134 »
2012-04-24 cleanup cmake files
74
6b09234e »
2012-06-29 fix debug build in msvc
75 IF (TBB_DLL_RELEASE AND TBB_DLL_DEBUG)
76 SET (TBB_DLL ${TBB_DLL_RELEASE} ${TBB_DLL_DEBUG})
dbbc6134 »
2012-04-24 cleanup cmake files
77 MESSAGE (STATUS "Found TBB DLL: ${TBB_DLL}")
6b09234e »
2012-06-29 fix debug build in msvc
78 ELSE (TBB_DLL_RELEASE AND TBB_DLL_DEBUG)
dbbc6134 »
2012-04-24 cleanup cmake files
79 MESSAGE (STATUS "NOT Found TBB DLL")
80 SET (TBB_FOUND FALSE)
6b09234e »
2012-06-29 fix debug build in msvc
81 ENDIF (TBB_DLL_RELEASE AND TBB_DLL_DEBUG)
0ed9d8ca »
2012-04-20 Improve FindTBB and FindMKL
82 ENDIF (WIN32)
fcd25f63 »
2012-08-01 Use CMake Function to simplify scripts
83
84
85 FUNCTION (ADD_TBB_RUNTIME exe_name)
86 IF (MSVC)
87 ADD_CUSTOM_COMMAND (
88 OUTPUT ${PROJECT_BINARY_DIR}/tbb.dll
89 DEPENDS ${TBB_DLL}
90 COMMAND ${CMAKE_COMMAND} ARGS -E copy
91 ${TBB_DLL_RELEASE} ${PROJECT_BINARY_DIR}/tbb.dll)
92 ADD_CUSTOM_TARGET (${exe_name}_tbb_dll
93 DEPENDS ${PROJECT_BINARY_DIR}/tbb.dll)
94 ADD_DEPENDENCIES (${exe_name} ${exe_name}_tbb_dll)
95 ADD_CUSTOM_COMMAND (
96 OUTPUT ${PROJECT_BINARY_DIR}/tbb_debug.dll
97 DEPENDS ${TBB_DLL_DEBUG}
98 COMMAND ${CMAKE_COMMAND} ARGS -E copy
99 ${TBB_DLL_DEBUG} ${PROJECT_BINARY_DIR}/tbb_debug.dll)
100 ADD_CUSTOM_TARGET (${exe_name}_tbb_debug_dll
101 DEPENDS ${PROJECT_BINARY_DIR}/tbb_debug.dll)
102 ADD_DEPENDENCIES (${exe_name} ${exe_name}_tbb_debug_dll)
103 ENDIF (MSVC)
104
105 IF (XCODE_VERSION)
106 ADD_CUSTOM_COMMAND (
107 OUTPUT ${PROJECT_BINARY_DIR}/libtbb.dylib
108 DEPENDS ${TBB_LINK_LIBRARIES_RELEASE}
109 COMMAND ${CMAKE_COMMAND} ARGS -E copy
110 ${TBB_LINK_LIBRARIES_RELEASE} ${PROJECT_BINARY_DIR}/libtbb.dylib)
111 ADD_CUSTOM_TARGET (${exe_name}_tbb_dylib
112 DEPENDS ${PROJECT_BINARY_DIR}/libtbb.dylib)
113 ADD_DEPENDENCIES (${exe_name} ${exe_name}_tbb_dylib)
114 ENDIF (XCODE_VERSION)
115 ENDFUNCTION (ADD_TBB_RUNTIME)
Something went wrong with that request. Please try again.