Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

300 строки
12 KiB

  1. diff -rupN OpenCV-2.3.1/3rdparty/libjasper/CMakeLists.txt OpenCV-2.3.1.cotire/3rdparty/libjasper/CMakeLists.txt
  2. --- OpenCV-2.3.1/3rdparty/libjasper/CMakeLists.txt 2011-09-12 20:39:55.000000000 +0200
  3. +++ OpenCV-2.3.1.cotire/3rdparty/libjasper/CMakeLists.txt 2012-04-01 11:23:04.000000000 +0200
  4. @@ -56,3 +56,7 @@ if(NOT BUILD_SHARED_LIBS)
  5. install(TARGETS ${the_target}
  6. ARCHIVE DESTINATION share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  7. endif()
  8. +
  9. +if (COMMAND cotire)
  10. +cotire(${the_target})
  11. +endif()
  12. diff -rupN OpenCV-2.3.1/3rdparty/libjpeg/CMakeLists.txt OpenCV-2.3.1.cotire/3rdparty/libjpeg/CMakeLists.txt
  13. --- OpenCV-2.3.1/3rdparty/libjpeg/CMakeLists.txt 2011-09-12 20:40:15.000000000 +0200
  14. +++ OpenCV-2.3.1.cotire/3rdparty/libjpeg/CMakeLists.txt 2012-04-01 11:23:10.000000000 +0200
  15. @@ -48,3 +48,7 @@ if(NOT BUILD_SHARED_LIBS)
  16. install(TARGETS ${the_target}
  17. ARCHIVE DESTINATION share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  18. endif()
  19. +
  20. +if (COMMAND cotire)
  21. +cotire(${the_target})
  22. +endif()
  23. diff -rupN OpenCV-2.3.1/3rdparty/libpng/CMakeLists.txt OpenCV-2.3.1.cotire/3rdparty/libpng/CMakeLists.txt
  24. --- OpenCV-2.3.1/3rdparty/libpng/CMakeLists.txt 2011-09-12 20:40:02.000000000 +0200
  25. +++ OpenCV-2.3.1.cotire/3rdparty/libpng/CMakeLists.txt 2012-04-01 11:23:17.000000000 +0200
  26. @@ -49,3 +49,7 @@ if(NOT BUILD_SHARED_LIBS)
  27. install(TARGETS ${the_target}
  28. ARCHIVE DESTINATION share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  29. endif()
  30. +
  31. +if (COMMAND cotire)
  32. +cotire(${the_target})
  33. +endif()
  34. diff -rupN OpenCV-2.3.1/3rdparty/libtiff/CMakeLists.txt OpenCV-2.3.1.cotire/3rdparty/libtiff/CMakeLists.txt
  35. --- OpenCV-2.3.1/3rdparty/libtiff/CMakeLists.txt 2011-09-12 20:29:15.000000000 +0200
  36. +++ OpenCV-2.3.1.cotire/3rdparty/libtiff/CMakeLists.txt 2012-04-01 11:23:23.000000000 +0200
  37. @@ -103,3 +103,7 @@ if(NOT BUILD_SHARED_LIBS)
  38. install(TARGETS ${the_target}
  39. ARCHIVE DESTINATION share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  40. endif()
  41. +
  42. +if (COMMAND cotire)
  43. +cotire(${the_target})
  44. +endif()
  45. diff -rupN OpenCV-2.3.1/3rdparty/zlib/CMakeLists.txt OpenCV-2.3.1.cotire/3rdparty/zlib/CMakeLists.txt
  46. --- OpenCV-2.3.1/3rdparty/zlib/CMakeLists.txt 2011-09-12 20:29:21.000000000 +0200
  47. +++ OpenCV-2.3.1.cotire/3rdparty/zlib/CMakeLists.txt 2012-04-01 11:24:36.000000000 +0200
  48. @@ -40,3 +40,7 @@ if(NOT BUILD_SHARED_LIBS)
  49. install(TARGETS ${the_target}
  50. ARCHIVE DESTINATION share/OpenCV/3rdparty/${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  51. endif()
  52. +
  53. +if (COMMAND cotire)
  54. +cotire(${the_target})
  55. +endif()
  56. diff -rupN OpenCV-2.3.1/CMakeLists.txt OpenCV-2.3.1.cotire/CMakeLists.txt
  57. --- OpenCV-2.3.1/CMakeLists.txt 2011-09-12 20:45:38.000000000 +0200
  58. +++ OpenCV-2.3.1.cotire/CMakeLists.txt 2012-04-01 14:34:56.000000000 +0200
  59. @@ -39,6 +39,8 @@ endif(NOT CMAKE_TOOLCHAIN_FILE)
  60. cmake_minimum_required(VERSION 2.4)
  61. project(OpenCV)
  62. +include("${CMAKE_SOURCE_DIR}/cotire.cmake")
  63. +
  64. set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configs" FORCE)
  65. if(DEFINED CMAKE_BUILD_TYPE)
  66. set_property( CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS ${CMAKE_CONFIGURATION_TYPES} )
  67. diff -rupN OpenCV-2.3.1/OpenCVModule.cmake OpenCV-2.3.1.cotire/OpenCVModule.cmake
  68. --- OpenCV-2.3.1/OpenCVModule.cmake 2011-09-12 20:45:38.000000000 +0200
  69. +++ OpenCV-2.3.1.cotire/OpenCVModule.cmake 2012-04-01 11:26:16.000000000 +0200
  70. @@ -86,7 +86,7 @@ macro(define_opencv_module name)
  71. INSTALL_NAME_DIR lib
  72. )
  73. - add_opencv_precompiled_headers(${the_target})
  74. +# add_opencv_precompiled_headers(${the_target})
  75. # Add the required libraries for linking:
  76. target_link_libraries(${the_target} ${OPENCV_LINKER_LIBS} ${IPP_LIBS} ${ARGN})
  77. @@ -102,6 +102,10 @@ macro(define_opencv_module name)
  78. )
  79. endif()
  80. + if (COMMAND cotire)
  81. + cotire(${the_target})
  82. + endif()
  83. +
  84. # Dependencies of this target:
  85. add_dependencies(${the_target} ${ARGN})
  86. @@ -137,7 +141,7 @@ macro(define_opencv_module name)
  87. add_executable(${the_target} ${test_srcs} ${test_hdrs})
  88. - add_opencv_precompiled_headers(${the_target})
  89. +# add_opencv_precompiled_headers(${the_target})
  90. # Additional target properties
  91. set_target_properties(${the_target} PROPERTIES
  92. @@ -149,6 +153,10 @@ macro(define_opencv_module name)
  93. set_target_properties(${the_target} PROPERTIES FOLDER "tests")
  94. endif()
  95. + if (COMMAND cotire)
  96. + cotire(${the_target})
  97. + endif()
  98. +
  99. add_dependencies(${the_target} ${test_deps})
  100. # Add the required libraries for linking:
  101. diff -rupN OpenCV-2.3.1/modules/androidcamera/CMakeLists.txt OpenCV-2.3.1.cotire/modules/androidcamera/CMakeLists.txt
  102. --- OpenCV-2.3.1/modules/androidcamera/CMakeLists.txt 2011-09-12 20:42:03.000000000 +0200
  103. +++ OpenCV-2.3.1.cotire/modules/androidcamera/CMakeLists.txt 2012-04-01 11:28:54.000000000 +0200
  104. @@ -52,3 +52,7 @@ if (NOT BUILD_ANDROID_CAMERA_WRAPPER)
  105. COMPONENT main)
  106. endforeach()
  107. endif()
  108. +
  109. +if (COMMAND cotire)
  110. +cotire(${the_target})
  111. +endif()
  112. diff -rupN OpenCV-2.3.1/modules/androidcamera/camera_wrapper/CMakeLists.txt OpenCV-2.3.1.cotire/modules/androidcamera/camera_wrapper/CMakeLists.txt
  113. --- OpenCV-2.3.1/modules/androidcamera/camera_wrapper/CMakeLists.txt 2011-09-12 20:42:03.000000000 +0200
  114. +++ OpenCV-2.3.1.cotire/modules/androidcamera/camera_wrapper/CMakeLists.txt 2012-04-01 11:20:26.000000000 +0200
  115. @@ -34,3 +34,7 @@ SET_TARGET_PROPERTIES(${the_target} PROP
  116. )
  117. install(TARGETS ${the_target} LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  118. +
  119. +if (COMMAND cotire)
  120. +cotire(${the_target})
  121. +endif()
  122. diff -rupN OpenCV-2.3.1/modules/gpu/CMakeLists.txt OpenCV-2.3.1.cotire/modules/gpu/CMakeLists.txt
  123. --- OpenCV-2.3.1/modules/gpu/CMakeLists.txt 2011-09-12 20:42:20.000000000 +0200
  124. +++ OpenCV-2.3.1.cotire/modules/gpu/CMakeLists.txt 2012-04-01 11:41:04.000000000 +0200
  125. @@ -106,7 +106,7 @@ if (BUILD_SHARED_LIBS)
  126. endif()
  127. endif()
  128. -add_opencv_precompiled_headers(${the_target})
  129. +#add_opencv_precompiled_headers(${the_target})
  130. # Additional target properties
  131. set_target_properties(${the_target} PROPERTIES
  132. @@ -156,6 +156,9 @@ install(FILES src/nvidia/NPP_staging/NPP
  133. # DESTINATION ${OPENCV_INCLUDE_PREFIX}/opencv2/${name}/device
  134. # COMPONENT main)
  135. +if (COMMAND cotire)
  136. +cotire(${the_target})
  137. +endif()
  138. ################################################################################################################
  139. ################################ GPU Module Tests #####################################################
  140. @@ -192,14 +195,17 @@ if(BUILD_TESTS AND EXISTS ${CMAKE_CURREN
  141. add_executable(${the_test_target} ${test_srcs} ${test_hdrs} ${nvidia})
  142. - add_opencv_precompiled_headers(${the_test_target})
  143. +# add_opencv_precompiled_headers(${the_test_target})
  144. # Additional target properties
  145. set_target_properties(${the_test_target} PROPERTIES
  146. DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
  147. RUNTIME_OUTPUT_DIRECTORY "${EXECUTABLE_OUTPUT_PATH}"
  148. )
  149. -
  150. + if (COMMAND cotire)
  151. + cotire(${the_test_target})
  152. + endif()
  153. +
  154. if(ENABLE_SOLUTION_FOLDERS)
  155. set_target_properties(${the_test_target} PROPERTIES FOLDER "tests")
  156. endif()
  157. diff -rupN OpenCV-2.3.1/modules/haartraining/CMakeLists.txt OpenCV-2.3.1.cotire/modules/haartraining/CMakeLists.txt
  158. --- OpenCV-2.3.1/modules/haartraining/CMakeLists.txt 2011-09-12 20:43:56.000000000 +0200
  159. +++ OpenCV-2.3.1.cotire/modules/haartraining/CMakeLists.txt 2012-04-01 11:21:27.000000000 +0200
  160. @@ -45,6 +45,10 @@ set_target_properties(opencv_haartrainin
  161. INSTALL_NAME_DIR lib
  162. )
  163. +if (COMMAND cotire)
  164. +cotire(opencv_haartraining_engine)
  165. +endif()
  166. +
  167. if(NOT ANDROID)
  168. # -----------------------------------------------------------
  169. # haartraining
  170. diff -rupN OpenCV-2.3.1/modules/highgui/CMakeLists.txt OpenCV-2.3.1.cotire/modules/highgui/CMakeLists.txt
  171. --- OpenCV-2.3.1/modules/highgui/CMakeLists.txt 2011-09-12 20:41:29.000000000 +0200
  172. +++ OpenCV-2.3.1.cotire/modules/highgui/CMakeLists.txt 2012-04-01 12:17:12.000000000 +0200
  173. @@ -77,6 +77,10 @@ file(GLOB grfmt_srcs src/grfmt*.cpp)
  174. set(grfmt_hdrs src/bitstrm.hpp ${grfmt_hdrs})
  175. set(grfmt_srcs src/bitstrm.cpp ${grfmt_srcs})
  176. +if (COMMAND cotire)
  177. + set_source_files_properties (${grfmt_srcs} PROPERTIES COTIRE_EXCLUDED TRUE)
  178. +endif()
  179. +
  180. source_group("Src\\grfmts" FILES ${grfmt_hdrs} ${grfmt_srcs})
  181. set(highgui_srcs
  182. @@ -209,6 +213,9 @@ if(APPLE)
  183. else()
  184. set(highgui_srcs ${highgui_srcs} src/cap_qtkit.mm)
  185. endif()
  186. + if (COMMAND cotire)
  187. + set_source_files_properties (src/window_cocoa.mm src/cap_qtkit.mm PROPERTIES COTIRE_EXCLUDED TRUE)
  188. + endif()
  189. endif(APPLE)
  190. if(WITH_ANDROID_CAMERA)
  191. @@ -276,7 +283,7 @@ if (BUILD_SHARED_LIBS)
  192. endif()
  193. endif()
  194. -add_opencv_precompiled_headers(${the_target})
  195. +#add_opencv_precompiled_headers(${the_target})
  196. # For dynamic link numbering convenions
  197. if(NOT ANDROID)
  198. @@ -307,6 +314,10 @@ if(MSVC)
  199. set_target_properties(${the_target} PROPERTIES LINK_FLAGS "/NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /DEBUG")
  200. endif(MSVC)
  201. +if (COMMAND cotire)
  202. +cotire(${the_target})
  203. +endif()
  204. +
  205. # Dependencies of this target:
  206. add_dependencies(${the_target} opencv_core opencv_imgproc)
  207. @@ -397,7 +408,7 @@ if(BUILD_TESTS)
  208. add_executable(${the_target} ${test_srcs} ${test_hdrs})
  209. - add_opencv_precompiled_headers(${the_target})
  210. +# add_opencv_precompiled_headers(${the_target})
  211. # Additional target properties
  212. set_target_properties(${the_target} PROPERTIES
  213. @@ -409,6 +420,10 @@ if(BUILD_TESTS)
  214. set_target_properties(${the_target} PROPERTIES FOLDER "tests")
  215. endif()
  216. +if (COMMAND cotire)
  217. +cotire(${the_target})
  218. +endif()
  219. +
  220. add_dependencies(${the_target} ${test_deps})
  221. # Add the required libraries for linking:
  222. diff -rupN OpenCV-2.3.1/modules/java/CMakeLists.txt OpenCV-2.3.1.cotire/modules/java/CMakeLists.txt
  223. --- OpenCV-2.3.1/modules/java/CMakeLists.txt 2011-09-12 20:40:26.000000000 +0200
  224. +++ OpenCV-2.3.1.cotire/modules/java/CMakeLists.txt 2012-04-01 11:22:49.000000000 +0200
  225. @@ -163,6 +163,10 @@ set_target_properties(${target} PROPERTI
  226. install(TARGETS ${target} LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT main)
  227. +if (COMMAND cotire)
  228. +cotire(${target})
  229. +endif()
  230. +
  231. if(ANDROID)
  232. target_link_libraries(${target} jnigraphics)
  233. diff -rupN OpenCV-2.3.1/modules/python/CMakeLists.txt OpenCV-2.3.1.cotire/modules/python/CMakeLists.txt
  234. --- OpenCV-2.3.1/modules/python/CMakeLists.txt 2011-09-12 20:40:30.000000000 +0200
  235. +++ OpenCV-2.3.1.cotire/modules/python/CMakeLists.txt 2012-04-01 11:23:51.000000000 +0200
  236. @@ -92,3 +92,7 @@ install(TARGETS ${cvpymodules}
  237. ARCHIVE DESTINATION ${CVPY_PATH} COMPONENT main
  238. )
  239. install(FILES src2/cv.py DESTINATION ${CVPY_PATH} COMPONENT main)
  240. +
  241. +if (COMMAND cotire)
  242. +cotire(${cv2_target})
  243. +endif()
  244. diff -rupN OpenCV-2.3.1/modules/stitching/CMakeLists.txt OpenCV-2.3.1.cotire/modules/stitching/CMakeLists.txt
  245. --- OpenCV-2.3.1/modules/stitching/CMakeLists.txt 2011-09-12 20:42:22.000000000 +0200
  246. +++ OpenCV-2.3.1.cotire/modules/stitching/CMakeLists.txt 2012-04-01 11:24:09.000000000 +0200
  247. @@ -38,3 +38,7 @@ endif()
  248. target_link_libraries(${the_target} ${stitching_libs})
  249. install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
  250. +
  251. +if (COMMAND cotire)
  252. +cotire(${the_target})
  253. +endif()
  254. diff -rupN OpenCV-2.3.1/modules/traincascade/CMakeLists.txt OpenCV-2.3.1.cotire/modules/traincascade/CMakeLists.txt
  255. --- OpenCV-2.3.1/modules/traincascade/CMakeLists.txt 2011-09-12 20:40:17.000000000 +0200
  256. +++ OpenCV-2.3.1.cotire/modules/traincascade/CMakeLists.txt 2012-04-01 11:24:25.000000000 +0200
  257. @@ -44,3 +44,7 @@ target_link_libraries(${the_target} ${tr
  258. if(NOT ANDROID)
  259. install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
  260. endif()
  261. +
  262. +if (COMMAND cotire)
  263. +cotire(${the_target})
  264. +endif()