[opengtl-commits] [524] move findOpenGTL.cmake to cmake/modules

[ Thread Index | Date Index | More lists.tuxfamily.org/opengtl-commits Archives ]


Revision: 524
Author:   cyrille
Date:     2008-12-07 23:00:43 +0100 (Sun, 07 Dec 2008)

Log Message:
-----------
move findOpenGTL.cmake to cmake/modules

Added Paths:
-----------
    trunk/libQtGTL/cmake/modules/FindOpenCTL.cmake

Removed Paths:
-------------
    trunk/libQtGTL/examples/QtCTL/cmake/modules/FindOpenCTL.cmake


Copied: trunk/libQtGTL/cmake/modules/FindOpenCTL.cmake (from rev 523, trunk/libQtGTL/examples/QtCTL/cmake/modules/FindOpenCTL.cmake)
===================================================================
--- trunk/libQtGTL/cmake/modules/FindOpenCTL.cmake	                        (rev 0)
+++ trunk/libQtGTL/cmake/modules/FindOpenCTL.cmake	2008-12-07 22:00:43 UTC (rev 524)
@@ -0,0 +1,36 @@
+     
+
+INCLUDE(UsePkgConfig)
+PKGCONFIG(OpenCTL _OpenCTLIncDir _OpenCTLLinkDir _OpenCTLLinkFlags _OpenCTLCflags)
+
+set(OPENCTL_DEFINITIONS ${_OpenCTLCflags})
+set(OPENCTL_LIBRARIES ${_OpenCTLLinkFlags})
+set(OPENCTL_INCLUDE_DIR ${_OpenCTLIncDir})
+
+if(OPENCTL_DEFINITIONS AND OPENCTL_LIBRARIES)
+
+  FIND_PROGRAM(PKGCONFIG_EXECUTABLE NAMES pkg-config PATHS /usr/bin/ /usr/local/bin )
+
+  # query pkg-config asking for OpenCTL == 0.9.2
+  EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.9.3 OpenCTL RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
+
+  if(_return_VALUE STREQUAL "0")
+    set(OPENCTL_FOUND TRUE)
+    set(HAVE_OPENCTL TRUE)
+  else(_return_VALUE STREQUAL "0")
+    message(STATUS "OpenCTL >= 0.9.3 was found")
+  endif(_return_VALUE STREQUAL "0")
+endif(OPENCTL_DEFINITIONS AND OPENCTL_LIBRARIES)
+
+if (OPENCTL_FOUND)
+    if (NOT OpenCTL_FIND_QUIETLY)
+        message(STATUS "Found OPENCTL: ${OPENCTL_LIBRARIES}")
+    endif (NOT OpenCTL_FIND_QUIETLY)
+else (OPENCTL_FOUND)
+    if (NOT OpenCTL_FIND_QUIETLY)
+        message(STATUS "OpenCTL was NOT found.")
+    endif (NOT OpenCTL_FIND_QUIETLY)
+    if (OpenCTL_FIND_REQUIRED)
+        message(FATAL_ERROR "Could NOT find OPENCTL")
+    endif (OpenCTL_FIND_REQUIRED)
+endif (OPENCTL_FOUND)

Deleted: trunk/libQtGTL/examples/QtCTL/cmake/modules/FindOpenCTL.cmake
===================================================================
--- trunk/libQtGTL/examples/QtCTL/cmake/modules/FindOpenCTL.cmake	2008-12-07 21:59:45 UTC (rev 523)
+++ trunk/libQtGTL/examples/QtCTL/cmake/modules/FindOpenCTL.cmake	2008-12-07 22:00:43 UTC (rev 524)
@@ -1,36 +0,0 @@
-     
-
-INCLUDE(UsePkgConfig)
-PKGCONFIG(OpenCTL _OpenCTLIncDir _OpenCTLLinkDir _OpenCTLLinkFlags _OpenCTLCflags)
-
-set(OPENCTL_DEFINITIONS ${_OpenCTLCflags})
-set(OPENCTL_LIBRARIES ${_OpenCTLLinkFlags})
-set(OPENCTL_INCLUDE_DIR ${_OpenCTLIncDir})
-
-if(OPENCTL_DEFINITIONS AND OPENCTL_LIBRARIES)
-
-  FIND_PROGRAM(PKGCONFIG_EXECUTABLE NAMES pkg-config PATHS /usr/bin/ /usr/local/bin )
-
-  # query pkg-config asking for OpenCTL == 0.9.2
-  EXEC_PROGRAM(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=0.9.3 OpenCTL RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
-
-  if(_return_VALUE STREQUAL "0")
-    set(OPENCTL_FOUND TRUE)
-    set(HAVE_OPENCTL TRUE)
-  else(_return_VALUE STREQUAL "0")
-    message(STATUS "OpenCTL >= 0.9.3 was found")
-  endif(_return_VALUE STREQUAL "0")
-endif(OPENCTL_DEFINITIONS AND OPENCTL_LIBRARIES)
-
-if (OPENCTL_FOUND)
-    if (NOT OpenCTL_FIND_QUIETLY)
-        message(STATUS "Found OPENCTL: ${OPENCTL_LIBRARIES}")
-    endif (NOT OpenCTL_FIND_QUIETLY)
-else (OPENCTL_FOUND)
-    if (NOT OpenCTL_FIND_QUIETLY)
-        message(STATUS "OpenCTL was NOT found.")
-    endif (NOT OpenCTL_FIND_QUIETLY)
-    if (OpenCTL_FIND_REQUIRED)
-        message(FATAL_ERROR "Could NOT find OPENCTL")
-    endif (OpenCTL_FIND_REQUIRED)
-endif (OPENCTL_FOUND)


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/