From 93a483ea3f2a62d414e0b5e610d0ce824e9c946c Mon Sep 17 00:00:00 2001 From: kestred Date: Mon, 25 Nov 2013 16:28:00 -0700 Subject: [PATCH] CMake: Start DTool Configure.cmake, currently produces output depending on the value of the configuration variables. Needs find_package() calls. --- dtool/Configure.cmake | 314 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) create mode 100644 dtool/Configure.cmake diff --git a/dtool/Configure.cmake b/dtool/Configure.cmake new file mode 100644 index 0000000000..a571b9e37e --- /dev/null +++ b/dtool/Configure.cmake @@ -0,0 +1,314 @@ +message(STATUS "") +message("Configuring support for the following optional third-party packages:") + +if(HAVE_EIGEN) + message(STATUS "+ Eigen linear algebra library") + if(LINMATH_ALIGN) + message(STATUS "+ (vectorization enabled in build)") + else() + message(STATUS "- (vectorization NOT enabled in build)") + endif() +else() + message(STATUS "- Did not find Eigen linear algebra library") +endif() + +#find_package(OpenSSL ssl crypto) +if(HAVE_OPENSSL) + message(STATUS "+ OpenSSL") +else() + message(STATUS "- Did not find OpenSSL") +endif() + +if(HAVE_JPEG) + message(STATUS "+ libjpeg") +else() + message(STATUS "- Did not find libjpeg") +endif() + +if(HAVE_PNG) + message(STATUS "+ libpng") +else() + message(STATUS "- Did not find libpng") +endif() + +if(HAVE_TIFF) + message(STATUS "+ libtiff") +else() + message(STATUS "- Did not find libtiff") +endif() + +if(HAVE_TAR) + message(STATUS "+ libtar") +else() + message(STATUS "- Did not find libtar") +endif() + +if(HAVE_FFTW) + message(STATUS "+ fftw") +else() + message(STATUS "- Did not find fftw") +endif() + +if(HAVE_SQUISH) + message(STATUS "+ squish") +else() + message(STATUS "- Did not find squish") +endif() + +if(HAVE_CG) + message(STATUS "+ Nvidia Cg High Level Shading Language") +else() + message(STATUS "- Did not find Nvidia Cg High Level Shading Language") +endif() + +if(HAVE_CGGL) + message(STATUS "+ Cg OpenGL API") +else() + message(STATUS "- Did not find Cg OpenGL API") +endif() + +if(HAVE_CGDX8) + message(STATUS "+ Cg DX8 API") +else() + message(STATUS "- Did not find Cg DX8 API") +endif() + +if(HAVE_CGDX9) + message(STATUS "+ Cg DX9 API") +else() + message(STATUS "- Did not find Cg DX9 API") +endif() + +if(HAVE_CGDX10) + message(STATUS "+ Cg DX10 API") +else() + message(STATUS "- Did not find Cg DX10 API") +endif() + +if(HAVE_VRPN) + message(STATUS "+ VRPN") +else() + message(STATUS "- Did not find VRPN") +endif() + +if(HAVE_ZLIB) + message(STATUS "+ zlib") +else() + message(STATUS "- Did not find zlib") +endif() + +if(HAVE_RAD_MSS) + message(STATUS "+ Miles Sound System") +else() + message(STATUS "- Did not find Miles Sound System") +endif() + +if(HAVE_FMODEX) + message(STATUS "+ FMOD Ex sound library") +else() + message(STATUS "- Did not find FMOD Ex sound library") +endif() + +if(HAVE_OPENAL) + message(STATUS "+ OpenAL sound library") +else() + message(STATUS "- Did not find OpenAL sound library") +endif() + +if(HAVE_PHYSX) + message(STATUS "+ Ageia PhysX") +else() + message(STATUS "- Did not find Ageia PhysX") +endif() + +if(HAVE_SPEEDTREE) + message(STATUS "+ SpeedTree") +else() + message(STATUS "- Did not find SpeedTree") +endif() + +if(HAVE_GTK) + message(STATUS "+ gtk+-2") +else() + message(STATUS "- Did not find gtk+-2") +endif() + +if(HAVE_FREETYPE) + message(STATUS "+ Freetype") +else() + message(STATUS "- Did not find Freetype") +endif() + +if(HAVE_WX) + message(STATUS "+ WxWidgets") +else() + message(STATUS "- Did not find WxWidgets") +endif() + +if(HAVE_FLTK) + message(STATUS "+ FLTK") +else() + message(STATUS "- Did not find FLTK") +endif() + +if(HAVE_GL) + message(STATUS "+ OpenGL") +else() + message(STATUS "- Did not find OpenGL") +endif() + +if(HAVE_GLES) + message(STATUS "+ OpenGL ES 1") +else() + message(STATUS "- Did not find OpenGL ES 1") +endif() + +if(HAVE_GLES2) + message(STATUS "+ OpenGL ES 2") +else() + message(STATUS "- Did not find OpenGL ES 2") +endif() + +if(HAVE_DX8) + message(STATUS "+ DirectX8") +else() + message(STATUS "- Did not find DirectX8") +endif() + +if(HAVE_DX9) + message(STATUS "+ DirectX9") +else() + message(STATUS "- Did not find DirectX9") +endif() + +if(HAVE_TINYDISPLAY) + message(STATUS "+ Tinydisplay") +else() + message(STATUS "- Not building Tinydisplay") +endif() + +# if(HAVE_SDL) +# message(STATUS "+ SDL") +# else() +# message(STATUS "- Did not find SDL") +# endif() + +if(HAVE_X11) + message(STATUS "+ X11") +else() + message(STATUS "- Did not find X11") +endif() + +if(HAVE_MESA) + message(STATUS "+ Mesa") +else() + message(STATUS "- Did not find Mesa") +endif() + +if(HAVE_OPENCV) + message(STATUS "+ OpenCV") +else() + message(STATUS "- Did not find OpenCV") +endif() + +if(HAVE_FFMPEG) + message(STATUS "+ FFMPEG") +else() + message(STATUS "- Did not find FFMPEG") +endif() + +if(HAVE_ODE) + message(STATUS "+ ODE") +else() + message(STATUS "- Did not find ODE") +endif() + +if(HAVE_AWESOMIUM) + message(STATUS "+ AWESOMIUM") +else() + message(STATUS "- Did not find AWESOMIUM") +endif() + +if(HAVE_MAYA) + message(STATUS "+ OpenMaya") +else() + message(STATUS "- Did not find OpenMaya") +endif() + +if(HAVE_FCOLLADA) + message(STATUS "+ FCollada") +else() + message(STATUS "- Did not find FCollada") +endif() + +if(HAVE_COLLADA14DOM OR HAVE_COLLADA15DOM) + message(STATUS "+ COLLADA DOM") +else() + message(STATUS "- Did not find COLLADA DOM") +endif() + +if(HAVE_ASSIMP) + message(STATUS "+ Assimp") +else() + message(STATUS "- Did not find Assimp") +endif() + +if(HAVE_ARTOOLKIT) + message(STATUS "+ ARToolKit") +else() + message(STATUS "- Did not find ARToolKit") +endif() + +if(HAVE_ROCKET) + if(HAVE_ROCKET_PYTHON) + message(STATUS "+ libRocket with Python bindings") + else() + message(STATUS "+ libRocket without Python bindings") + endif() +else() + message(STATUS "- Did not find libRocket") +endif() + +if(HAVE_BULLET) + message(STATUS "+ Bullet Physics") +else() + message(STATUS "- Did not find Bullet Physics") +endif() + +if(HAVE_VORBIS) + message(STATUS "+ libvorbis (Ogg Vorbis Decoder)") +else() + message(STATUS "- Did not find libvorbis (Ogg Vorbis Decoder)") +endif() + +message(STATUS "") +if(HAVE_INTERROGATE AND HAVE_PYTHON) + message(STATUS "Compilation will generate Python interfaces.") +else() + message(STATUS "Configuring Panda without Python interfaces.") +endif() + +if(HAVE_THREADS) + if(SIMPLE_THREADS) + message(STATUS "Compilation will include simulated threading support.") + else() + if(DO_PIPELINING) + message(STATUS "Compilation will include full, pipelined threading support.") + else() + message(STATUS "Compilation will include nonpipelined threading support.") + endif() + endif() +else() + message(STATUS "Configuring Panda without threading support.") +endif() + +if(OSX_PLATFORM) + if(UNIVERSAL_BINARIES) + message(STATUS "Compilation will create universal binaries.") + else() + message(STATUS "Compilation will not create universal binaries.") + endif() +endif() + +message(STATUS "") +message(STATUS "See dtool_config.h for more details about the specified configuration.\n")