commit d92cee4d9870fab08fdfadf9ab0bfb4658a09aa3 Author: hasufell Date: Fri Nov 22 14:06:34 2013 +0100 add cmake options diff --git a/CMakeLists.txt b/CMakeLists.txt index 34cd375..dbb4cb4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,10 +115,20 @@ FIND_PACKAGE(Sqlite3) FIND_PACKAGE(ZLIB) SET(V8_DIR "" CACHE PATH "set to base V8 install path") -FIND_PACKAGE(V8) - -FIND_PACKAGE(JavaScriptCore) -FIND_PACKAGE(LibNoise) +OPTION(OSGEARTH_USE_V8 "Enable to use V8 JavaScript engine" ON) +IF(OSGEARTH_USE_V8) + FIND_PACKAGE(V8) +ENDIF(OSGEARTH_USE_V8) + +OPTION(OSGEARTH_USE_JAVASCRIPTCORE "Enable use of JavaScriptCore" ON) +OPTION(OSGEARTH_USE_LIBNOISE "Enable use of LibNoise" ON) + +IF (OSGEARTH_USE_JAVASCRIPTCORE) + FIND_PACKAGE(JavaScriptCore) +ENDIF (OSGEARTH_USE_JAVASCRIPTCORE) +IF (OSGEARTH_USE_LIBNOISE) + FIND_PACKAGE(LibNoise) +ENDIF(OSGEARTH_USE_LIBNOISE) FIND_PACKAGE(Qt4) IF (QT4_FOUND)