OPTION (DISABLE_LIBPROXY "Build without libproxy support even if package is installed?" OFF)
-
+OPTION (DISABLE_AUTODOCS "Do not require doxygen being installed (required to build autodocs)?" OFF)
# allow name libraries by name mixed with full
# paths
FIND_PROGRAM( DOXYGEN doxygen )
IF ( NOT DOXYGEN )
- MESSAGE( FATAL_ERROR "doxygen not found: install doxygen to build the documentation." )
+ IF ( DISABLE_AUTODOCS )
+ MESSAGE( STATUS "doxygen is not available. Can't build the documentation." )
+ ELSE ( DISABLE_AUTODOCS )
+ MESSAGE( FATAL_ERROR "doxygen not found: install doxygen to build the documentation!" )
+ ENDIF ( DISABLE_AUTODOCS )
ELSE ( NOT DOXYGEN )
MESSAGE( STATUS "doxygen found: ${DOXYGEN}" )
ENDIF ( NOT DOXYGEN )
## ############################################################
-INCLUDE( FindQt3 )
-IF ( NOT QT_FOUND )
- MESSAGE( WARNING " qt3 not found" )
-ELSE ( NOT QT_FOUND )
- ADD_DEFINITIONS( ${QT_DEFINITIONS} )
- INCLUDE_DIRECTORIES( ${QT_INCLUDE_DIR} )
- #SET( QT_LIBRARIES
- #"/usr/lib${LIB_SUFFIX}/qt3/lib${LIB_SUFFIX}/libqassistantclient.a;/usr/lib${LIB_SUFFIX}/qt3/lib${LIB_SUFFIX}/libqt-mt.so;-lSM;-lICE;/usr/X11R6/lib${LIB_SUFFIX}/libX11.so;/usr/X11R6/lib${LIB_SUFFIX}/libXext.so;dl;-lpthread"
- #)
-ENDIF( NOT QT_FOUND )
-
SET(THREAD_LIBRARY boost_thread)
## ############################################################
### ##################################################
+IF ( DOXYGEN )
+### ##################################################
FIND_PROGRAM( DOT dot )
IF ( NOT DOT )
ADD_CUSTOM_TARGET( doc ALL
DEPENDS ${DOXYGEN_OUTPUT}
)
-ADD_DEPENDENCIES(doc zypp)
ADD_CUSTOM_TARGET( doc_forced
COMMAND ${CMAKE_COMMAND} -E echo_append "Building Documentation..."
# ${CMAKE_CURRENT_BINARY_DIR}/html
# DESTINATION ${DOC_INSTALL_DIR}
#)
+### ##################################################
+ENDIF ( DOXYGEN )
+### ##################################################
BuildRequires: boost-devel
BuildRequires: dejagnu
BuildRequires: doxygen
-%if %0%{?force_gcc_46}
+%if 0%{?force_gcc_46}
BuildRequires: gcc-c++ = 4.6
%else
BuildRequires: gcc-c++ >= 4.6
%build
mkdir build
cd build
-%if %0%{?force_gcc_46}
+%if 0%{?force_gcc_46}
export CC=gcc-4.6
export CXX=g++-4.6
%endif