File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ add_subdirectory(3rdparty)
3030
3131include (cmake/opencv_config.cmake )
3232
33+ if (NOT WIN32 )
34+ find_package (OpenMP REQUIRED )
35+ endif ()
36+
3337if (NOT WIN32 )
3438 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS } -Wall -Wextra -Werror" )
3539 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS } -Wall -Wextra -Werror" )
Original file line number Diff line number Diff line change 11file (GLOB_RECURSE perf_src *.cpp )
22add_library (perf_lib STATIC "${PERF_HEADERS} " "${perf_src} " )
3+ if (NOT WIN32 )
4+ target_link_libraries (perf_lib PUBLIC OpenMP::OpenMP_CXX )
5+ endif ()
Original file line number Diff line number Diff line change 11file (GLOB_RECURSE TEST_SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR } /*.cpp )
22
3- if (NOT WIN32 )
4- find_package (OpenMP REQUIRED )
5- endif ()
6-
73add_executable (run_test ${TEST_SRC_FILES} )
84if (NOT WIN32 )
95 target_link_libraries (run_test PUBLIC OpenMP::OpenMP_CXX )
You can’t perform that action at this time.
0 commit comments