Browse files

updated cmake file

  • Loading branch information...
1 parent c6c30f3 commit 128f5597d4f1cc3fa55ac04194fddc586f64f9c5 alexcb committed Jun 5, 2008
Showing with 8 additions and 2 deletions.
  1. +8 −2 CMakeLists.txt
View
10 CMakeLists.txt
@@ -7,11 +7,16 @@ SET( V_BUGFIX 0 )
SET( VERSION ${V_MAJOR}.${V_MINOR}.${V_BUGFIX} )
SET( APIVERSION ${V_MAJOR}.${V_MINOR} )
+cmake_minimum_required( VERSION 2.4 )
+
+cmake_policy( SET CMP0003 NEW )
+cmake_policy( SET CMP0005 NEW )
+
MESSAGE (STATUS "${PROJECT_NAME} version ${VERSION}")
# define some preprocessor strings that the code is expecting
-ADD_DEFINITIONS( -DPROJECT='"'${PROJECT_NAME}'"'
- -DVERSION='"'${VERSION}'"' )
+ADD_DEFINITIONS( -DPROJECT=\"${PROJECT_NAME}\"
+ -DVERSION=\"${VERSION}\" )
include(FindPkgConfig)
pkg_check_modules( GLIB glib-2.0 )
@@ -29,6 +34,7 @@ include_directories( .
${GLIB_INCLUDE_DIRS}
${FLTK_INCLUDE_DIR}
${OPENGL_INCLUDE_DIR}
+ /opt/local/include
)

0 comments on commit 128f559

Please sign in to comment.