From 35b06f1217a675fac326f7bacb86e712bca2a0f9 Mon Sep 17 00:00:00 2001 From: "Joshua M. Doe" Date: Wed, 14 Sep 2011 17:35:55 -0400 Subject: [PATCH] build: only build plugins if dependencies are available --- ext/CMakeLists.txt | 4 +++- gst/CMakeLists.txt | 4 +++- sys/CMakeLists.txt | 16 +++++++++++++--- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt index 60051c2..ed1ce6f 100644 --- a/ext/CMakeLists.txt +++ b/ext/CMakeLists.txt @@ -1 +1,3 @@ -add_subdirectory (freeimage) \ No newline at end of file +if(FREEIMAGE_FOUND) + add_subdirectory (freeimage) +endif(FREEIMAGE_FOUND) diff --git a/gst/CMakeLists.txt b/gst/CMakeLists.txt index 27e7a5b..b53c8cc 100644 --- a/gst/CMakeLists.txt +++ b/gst/CMakeLists.txt @@ -1,2 +1,4 @@ -add_subdirectory (sensorfx) +if (OPENCV_FOUND) + add_subdirectory (sensorfx) +endif (OPENCV_FOUND) add_subdirectory (videoadjust) diff --git a/sys/CMakeLists.txt b/sys/CMakeLists.txt index 70f3d44..cdbbdc3 100644 --- a/sys/CMakeLists.txt +++ b/sys/CMakeLists.txt @@ -1,3 +1,13 @@ -add_subdirectory (euresys) -add_subdirectory (niimaq) -add_subdirectory (iotechdaqx) +if (EURESYS_FOUND) + add_subdirectory (euresys) +endif (EURESYS_FOUND) + +if (NIIMAQ_FOUND) + add_subdirectory (niimaq) +endif (NIIMAQ_FOUND) + +if (IOTECHDAQX_FOUND) + add_subdirectory (iotechdaqx) +endif (IOTECHDAQX_FOUND) + +add_subdirectory (decklink)