#from http://www.cmake.org #this imports variables here set(MESSAGE_DEBUG_ACTIVE ON) PackageSetup() option(${PACKAGE}_gui "build ${PACKAGE}_gui" OFF) if(${PACKAGE}_gui) find_package(Qt4) debug_message("found Qt4--qmake >${QT_QMAKE_EXECUTABLE}<--") set(Package_specific_cmake_args ${Package_specific_cmake_args} -DBUILD_QtDialog:BOOL=ON) message("Package_specific_cmake_args-->${Package_specific_cmake_args}<--") endif() set(Package_source_setup URL http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz URL_MD5 209b7d1d04b2e00986538d74ba764fcf ) PackageCmakeAdd()