Commit 3bbfe4ca authored by David Bommes's avatar David Bommes

fixed cmakelists for example-code

git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@146 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent 844f1648
......@@ -40,10 +40,30 @@ if( Boost_FOUND)
list( APPEND COMISO_LINK_LIBRARIES ${Boost_LIBRARIES} )
endif()
list( APPEND COMISO_LINK_LIBRARIES ${SUITESPARSE_LIBRARIES} )
list( APPEND COMISO_LINK_LIBRARIES ${MPI_CXX_LIBRARIES} )
list( APPEND COMISO_LINK_LIBRARIES ${PETSC_LIBRARY} )
list( APPEND COMISO_LINK_LIBRARIES ${TAO_LIBRARY} )
FIND_PACKAGE( MPI)
if( MPI_FOUND)
list( APPEND COMISO_LINK_LIBRARIES ${MPI_CXX_LIBRARIES} )
endif()
FIND_PACKAGE( PETSC)
if( PETSC_FOUND)
list( APPEND COMISO_LINK_LIBRARIES ${PETSC_LIBRARY} )
list( APPEND COMISO_LINK_LIBRARIES ${TAO_LIBRARY} )
list( APPEND COMISO_LINK_DIRECTORIES ${PETSC_LIBRARY_DIR} )
endif()
FIND_PACKAGE( TAO)
if( TAO_FOUND)
list( APPEND COMISO_LINK_DIRECTORIES ${TAO_LIBRARY_DIR})
endif()
FIND_PACKAGE( SUITESPARSE)
if(SUITESPARSE_FOUND)
list( APPEND COMISO_INCLUDE_DIRECTORIES ${SUITESPARSE_INCLUDE_DIRS})
list( APPEND COMISO_LINK_LIBRARIES ${SUITESPARSE_LIBRARIES} )
list( APPEND COMISO_LINK_DIRECTORIES ${SUITESPARSE_LIBRARY_DIRS} )
endif()
#MESSAGE( ${COMISO_LINK_LIBRARIES})
......@@ -53,13 +73,9 @@ include_directories (
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${COMISO_INCLUDE_DIR}
${SUITESPARSE_INCLUDE_DIRS}
${COMISO_INCLUDE_DIRECTORIES}
)
link_directories (
${SUITESPARSE_LIBRARY_DIRS}
${TAO_LIBRARY_DIR}
${PETSC_LIBRARY_DIR}
${COMISO_LINK_DIRECTORIES}
)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment