diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt
index 0b01f569fcfc9c6640ee5f81e6fe6a8d844f7c98..9f5f51f7a02255d99fc87b944f933a43a268b784 100644
--- a/src/test/CMakeLists.txt
+++ b/src/test/CMakeLists.txt
@@ -68,10 +68,6 @@ target_link_libraries(gtest_local_param ${PROJECT_NAME})
 wolf_add_gtest(gtest_motion_buffer gtest_motion_buffer.cpp)
 target_link_libraries(gtest_motion_buffer ${PROJECT_NAME})
 
-# Problem class test
-wolf_add_gtest(gtest_problem gtest_problem.cpp)
-target_link_libraries(gtest_problem ${PROJECT_NAME})
-
 # Rotation test
 wolf_add_gtest(gtest_rotation gtest_rotation.cpp)
 target_link_libraries(gtest_rotation ${PROJECT_NAME})
@@ -140,6 +136,10 @@ target_link_libraries(gtest_odom_3D ${PROJECT_NAME})
 
 # ROI test
 IF(OpenCV_FOUND)
+  # Problem class test
+  wolf_add_gtest(gtest_problem gtest_problem.cpp)
+  target_link_libraries(gtest_problem ${PROJECT_NAME})
+
   wolf_add_gtest(gtest_roi_ORB gtest_roi_ORB.cpp)
   target_link_libraries(gtest_roi_ORB ${PROJECT_NAME})
 ENDIF(OpenCV_FOUND)
\ No newline at end of file