From a378dbee2d42e881a50cfb0e56a882d6b10d08aa Mon Sep 17 00:00:00 2001 From: Guilhem Saurel Date: Thu, 16 May 2024 11:17:08 +0200 Subject: [PATCH] CMake: OMP is required --- M3T/CMakeLists.txt | 3 ++- M3T/src/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/M3T/CMakeLists.txt b/M3T/CMakeLists.txt index db9f86b..9805deb 100644 --- a/M3T/CMakeLists.txt +++ b/M3T/CMakeLists.txt @@ -25,6 +25,7 @@ if (WIN32) endif () # Used libraries +find_package(OpenMP REQUIRED) find_package(Eigen3 3.3.2 REQUIRED) find_package(GLEW REQUIRED) if (UNIX) @@ -122,7 +123,7 @@ if (USE_REALSENSE) add_definitions( -DUSE_REALSENSE=TRUE ) endif () if(OpenCV_CUDA_VERSION) - add_definitions( -DUSE_CUDA=TRUE ) + add_definitions( -DUSE_CUDA=TRUE ) endif () if (USE_GTEST) add_definitions( -DUSE_GTEST=TRUE ) diff --git a/M3T/src/CMakeLists.txt b/M3T/src/CMakeLists.txt index b695912..439d164 100644 --- a/M3T/src/CMakeLists.txt +++ b/M3T/src/CMakeLists.txt @@ -81,7 +81,7 @@ endif () # Define libraries # ============================================================================= -set(LIBRARIES Eigen3::Eigen OpenGL::GL GLEW::GLEW glfw ${OpenCV_LIBRARIES}) +set(LIBRARIES Eigen3::Eigen OpenGL::GL GLEW::GLEW glfw ${OpenCV_LIBRARIES} OpenMP::OpenMP_CXX) if (UNIX) list(APPEND LIBRARIES pthread stdc++fs) endif ()