Bug #500

Does not build without QT

Added by Timo Korthals over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:2017-02-22
Priority:NormalDue date:
Assignee:Christof Elbrechter% Done:

100%

Category:-
Target version:-

Description

The component src/ICLCV/HeartrateDetector.cpp requires QT, but is not excluded if QT is OFF.
So here is a patch:

Index: ICLCV/CMakeLists.txt
===================================================================
--- ICLCV/CMakeLists.txt        (revision 4625)
+++ ICLCV/CMakeLists.txt        (working copy)
@@ -32,7 +32,6 @@
             src/ICLCV/CV.cpp
             src/ICLCV/Extrapolator.cpp
             src/ICLCV/FloodFiller.cpp
-            src/ICLCV/HeartrateDetector.cpp
             src/ICLCV/HoughLine.cpp
             src/ICLCV/HoughLineDetector.cpp
             src/ICLCV/HungarianAlgorithm.cpp
@@ -55,7 +54,6 @@
             src/ICLCV/CV.h
             src/ICLCV/Extrapolator.h
             src/ICLCV/FloodFiller.h
-            src/ICLCV/HeartrateDetector.h
             src/ICLCV/HoughLine.h
             src/ICLCV/HoughLineDetector.h
             src/ICLCV/HungarianAlgorithm.h
@@ -88,6 +86,12 @@
                       src/ICLCV/TemplateTracker.h)
 ENDIF()

+IF(QT_FOUND)                                                                                                                                                                                                     
+  LIST(APPEND SOURCES src/ICLCV/HeartrateDetector.cpp)                                                                                                                                                           
+                                                                                                                                                                                                                 
+  LIST(APPEND HEADERS src/ICLCV/HeartrateDetector.h)                                                                                                                                                             
+ENDIF()                                                                                                                                                                                                          
+                                                                                                                                                                                                                 
 IF(OPENCV_FOUND)                                                                                                                                                                                                 
   LIST(APPEND SOURCES src/ICLCV/OpenSurfLib.cpp                                                                                                                                                                  
                       src/ICLCV/LensUndistortionCalibrator.cpp

History

#1 Updated by Christof Elbrechter over 7 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 40

on it ..

#2 Updated by Christof Elbrechter over 7 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 40 to 100

ok, good suggestion! By default, C++-11 is used now

Also available in: Atom PDF