Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 15350 → Rev 15351

/trunk/Scribus/CMakeLists.txt
716,21 → 716,6
ELSE(Boost_FOUND)
MESSAGE("Boost: NOT FOUND, not building 2geomtools")
ENDIF (Boost_FOUND)
FIND_PACKAGE(GSL)
IF(GSL_FOUND)
SET(LINK_GSL ${GSL_LINK_FLAGS})
SET(GSL_CFLAGS "${GSL_CFLAGS} -DHAVE_GSL")
SET(HAVE_GSL 1)
INCLUDE (CheckCXXSourceCompiles)
MACRO(CHECK_MATH_FUNCTION FUNCTION VAR)
CHECK_CXX_SOURCE_COMPILES("#include <math.h>\nint main() { double a=0.5,b=0.5,c=0.5; int i=1,j=2,k=3; ${FUNCTION}; return 0; }" ${VAR})
ENDMACRO(CHECK_MATH_FUNCTION)
CHECK_MATH_FUNCTION("sincos(a,&b,&c)" HAVE_SINCOS)
CHECK_MATH_FUNCTION("round(a)" HAVE_ROUND)
CHECK_MATH_FUNCTION("trunc(a)" HAVE_TRUNC)
ELSE(GSL_FOUND)
SET(HAVE_BOOST 0)
ENDIF(GSL_FOUND)
ENDIF (WITH_BOOST)
#>>Boost for 2Geom Tools
 
/trunk/Scribus/config.h.cmake
29,7 → 29,6
#cmakedefine HAVE_PODOFO 1
#cmakedefine HAVE_OSG 1
#cmakedefine HAVE_BOOST 1
#cmakedefine HAVE_GSL 1
#cmakedefine HAVE_SINCOS
#cmakedefine HAVE_ROUND
#cmakedefine HAVE_TRUNC