Permalink
Browse files

Found out I should have been using find_package() in CMake instead of…

… including the FindXXX modules directly.
  • Loading branch information...
vilya committed Aug 24, 2010
1 parent 0305d0e commit b6fa2778accd1c534ea4133b319e799c361d55b4
Showing with 8 additions and 6 deletions.
  1. +8 −6 CMakeLists.txt
View
@@ -2,12 +2,14 @@ project(VGL)
cmake_minimum_required(VERSION 2.6)
# External libraries that we use.
-include(FindGLUT)
-include(FindJPEG)
-include(FindPNG)
-include(FindOpenGL)
-include(FindOpenMP)
-include(FindTIFF)
+find_package(GLUT)
+find_package(JPEG)
+find_package(PNG)
+find_package(OpenGL)
+find_package(OpenMP)
+find_package(TIFF)
+
+add_definitions(${PNG_DEFINITIONS})
# There's no ready-made CMake module for setting up cppunit, so it's DIY time...
find_library(CPPUNIT_LIBRARY cppunit)

0 comments on commit b6fa277

Please sign in to comment.