Skip to content
Snippets Groups Projects
CMakeLists.txt 1.42 KiB
Newer Older
  • Learn to ignore specific revisions
  • INCLUDE_DIRECTORIES( config core debug diff matrix mesh solver )
    
    
    Tomáš Oberhuber's avatar
    Tomáš Oberhuber committed
    ADD_SUBDIRECTORY( config )
    ADD_SUBDIRECTORY( core )
    ADD_SUBDIRECTORY( debug )
    ADD_SUBDIRECTORY( diff )
    ADD_SUBDIRECTORY( matrix )
    ADD_SUBDIRECTORY( mesh )
    
    ADD_SUBDIRECTORY( solvers )
    
    ADD_LIBRARY( tnl${debugExt}-${tnlVersion} SHARED 
                   ${tnl_config_SOURCES}
                   ${tnl_core_SOURCES}
                   ${tnl_debug_SOURCES}
                   ${tnl_matrix_SOURCES} )
    SET_TARGET_PROPERTIES( tnl${debugExt}-${tnlVersion} PROPERTIES 
                              SOVERSION 0 
                              VERSION ${tnlVersion} )
    TARGET_LINK_LIBRARIES( tnl${debugExt}-${tnlVersion}  
                              ${BZIP2_LIBRARIES} )
    
    INSTALL( TARGETS tnl${debugExt}-${tnlVersion} DESTINATION lib )
    
    Tomáš Oberhuber's avatar
    Tomáš Oberhuber committed
    IF( BUILD_MPI )
    
      ADD_LIBRARY( tnl-mpi${debugExt}-${tnlVersion} SHARED
                     ${tnl_config_SOURCES}
                     ${tnl_core_SOURCES}
                     ${tnl_debug_SOURCES}
                     ${tnl_matrix_SOURCES} )
      SET_TARGET_PROPERTIES( tnl-mpi${debugExt}-${tnlVersion} PROPERTIES
                                SOVERSION 0 
                                VERSION ${tnlVersion} ) 
      TARGET_LINK_LIBRARIES( tnl-mpi${debugExt}-${tnlVersion} 
                                ${MPI_LIBRARIES} 
                                ${BZIP2_LIBRARIES} )
    
       INSTALL( TARGETS tnl-mpi${debugExt}-${tnlVersion} DESTINATION lib )                                                             
    
    Tomáš Oberhuber's avatar
    Tomáš Oberhuber committed
    ENDIF()