Browse Source

Add additional output, CG_LIBRARIES, to FindCg.cmake.

kestred 12 years ago
parent
commit
c20f38c383
1 changed files with 6 additions and 1 deletions
  1. 6 1
      cmake/modules/FindCg.cmake

+ 6 - 1
cmake/modules/FindCg.cmake

@@ -10,6 +10,7 @@
 #   CG_INCLUDE_DIRS  - directories for all NvidiaCg components
 #   CG_LIBRARY_DIR   - the NvidiaCg library directory
 #   CG_LIBRARY       - the path to the library binary
+#   CG_LIBRARIES     - the paths to the Cg library and each library below.
 #
 #   CGGL_FOUND       - system has CgGL
 #   CGGL_INCLUDE_DIR - the CgGL include directory
@@ -157,4 +158,8 @@ if(CG_INCLUDE_DIR AND CG_LIBRARY_DIR)
   find_cgdx8()
   find_cgdx9()
   find_cgdx10()
-endif()
+
+  set(CG_LIBRARIES ${CG_LIBRARY} ${CGGL_LIBRARY}
+    ${CGDX8_LIBRARY} ${CGDX9_LIBRARY} ${CGDX10_LIBRARY})
+  mark_as_advanced(CG_LIBRARIES)
+endif()