PROJECT( SUNDIALS C ) ENABLE_TESTING() INCLUDE(Dart) SET(SIMTKSUNDIALS_MAJOR_VERSION 0) SET(SIMTKSUNDIALS_MINOR_VERSION 5) SET(SIMTKSUNDIALS_BUILD_VERSION 1) SET(SIMTKSUNDIALS_COPYRIGHT_YEARS "2005-6") # comma separated list of authors SET(SIMTKSUNDIALS_AUTHORS "Jack Middleton") SUBDIRS( shared cvode cvodes ida kinsol nvec_ser doc examples) IF( WIN32 ) SET( TXT_SUFFIX .txt ) IF( CMAKE_C_COMPILER MATCHES "gcc?" ) SET( CMAKE_C_FLAGS -mno-cygwin ) SET( CMAKE_SHARED_LINKER_FLAGS -mno-cygwin ) SET( CMAKE_EXE_LINKER_FLAGS -mno-cygwin ) SET( CMAKE_SHARED_LIBRARY_PREFIX ) ENDIF( CMAKE_C_COMPILER MATCHES "gcc?" ) ENDIF( WIN32 ) SET( LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/core/lib ) # # If building 32bit libraries on a 64bit Unix OS need to set the linker # flags for building shared libraries # (should be handled by nightly build scripts ) # #IF( UNIX ) # EXEC_PROGRAM ( uname ARGS -i OUTPUT_VARIABLE SYS_UNAME ) # IF( "${SYS_UNAME}" STREQUAL "x86_64" ) # IF( ARCH64 ) # MESSAGE( "ARCH64=ON ") # ELSE( ARCH64 ) # SET(CMAKE_SHARED_LINKER_FLAGS -m32) # SET(CMAKE_C_FLAGS -m32) # MESSAGE( "ARCH64=OFF ") # ENDIF( ARCH64 ) # ENDIF( "${SYS_UNAME}" STREQUAL "x86_64" ) #ENDIF( UNIX )