Johannes Ruehle 12 жил өмнө
parent
commit
1243e6329d
2 өөрчлөгдсөн 10 нэмэгдсэн , 0 устгасан
  1. 9 0
      CMakeLists.txt
  2. 1 0
      readme.txt

+ 9 - 0
CMakeLists.txt

@@ -22,6 +22,15 @@ IF (Boost_FOUND)
     ADD_DEFINITIONS( "-DNICE_BOOST_FOUND" )
     ADD_DEFINITIONS( "-DNICE_BOOST_FOUND" )
 ENDIF()
 ENDIF()
 
 
+
+find_package(OpenMP)
+if (OPENMP_FOUND)
+    set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
+    set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
+    ADD_DEFINITIONS( "-DNICE_USELIB_OPENMP")
+endif()
+
+
 #IF(WIN32)
 #IF(WIN32)
  # MESSAGE(FATAL_ERROR "not yet ready")
  # MESSAGE(FATAL_ERROR "not yet ready")
 #ENDIF(WIN32) 
 #ENDIF(WIN32) 

+ 1 - 0
readme.txt

@@ -69,6 +69,7 @@ ocv_glob_modules(pathcurrdir) -->in modules
 defs to care about
 defs to care about
 NICE_USELIB_CUDACHOLESKY
 NICE_USELIB_CUDACHOLESKY
 NICE_USELIB_IPP
 NICE_USELIB_IPP
+NICE_USELIB_OPENMP
 #ifdef NICE_USELIB_MATIO
 #ifdef NICE_USELIB_MATIO
 
 
 #eigene definiton zum builden der sub-test-ordners
 #eigene definiton zum builden der sub-test-ordners