Commit 4543022d authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

CMakeLists.txt: removed libtnl.so (TNL is now header-only!)

parent 4c610bf6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
if( BUILD_CUDA )
    CUDA_ADD_EXECUTABLE( tnl-benchmark-blas tnl-benchmark-blas.cu )
    CUDA_ADD_CUBLAS_TO_TARGET( tnl-benchmark-blas )
    TARGET_LINK_LIBRARIES( tnl-benchmark-blas tnl )
else()
    ADD_EXECUTABLE( tnl-benchmark-blas tnl-benchmark-blas.cpp )
    TARGET_LINK_LIBRARIES( tnl-benchmark-blas tnl )
endif()

install( TARGETS tnl-benchmark-blas RUNTIME DESTINATION bin )
+0 −2
Original line number Diff line number Diff line
if( BUILD_CUDA )
   cuda_add_executable( tnl-benchmark-distributed-spmv-cuda tnl-benchmark-distributed-spmv.cu )
   target_link_libraries( tnl-benchmark-distributed-spmv-cuda tnl )

   install( TARGETS tnl-benchmark-distributed-spmv-cuda RUNTIME DESTINATION bin )
endif()

add_executable( tnl-benchmark-distributed-spmv tnl-benchmark-distributed-spmv.cpp )
target_link_libraries( tnl-benchmark-distributed-spmv tnl )

install( TARGETS tnl-benchmark-distributed-spmv RUNTIME DESTINATION bin )
+2 −8
Original line number Diff line number Diff line
IF( BUILD_CUDA )
    CUDA_ADD_EXECUTABLE( tnl-benchmark-simple-heat-equation tnl-benchmark-simple-heat-equation.cu )
    TARGET_LINK_LIBRARIES( tnl-benchmark-simple-heat-equation tnl )

    CUDA_ADD_EXECUTABLE( tnl-benchmark-simple-heat-equation-bug tnl-benchmark-simple-heat-equation-bug.cu )
    TARGET_LINK_LIBRARIES( tnl-benchmark-simple-heat-equation-bug tnl )


    CUDA_ADD_EXECUTABLE( tnl-benchmark-heat-equation tnl-benchmark-heat-equation.cu )
    TARGET_LINK_LIBRARIES( tnl-benchmark-heat-equation tnl )
ELSE()
    ADD_EXECUTABLE( tnl-benchmark-heat-equation tnl-benchmark-heat-equation.cpp )
    TARGET_LINK_LIBRARIES( tnl-benchmark-heat-equation tnl )

    ADD_EXECUTABLE( tnl-benchmark-simple-heat-equation tnl-benchmark-simple-heat-equation.cpp )
    TARGET_LINK_LIBRARIES( tnl-benchmark-simple-heat-equation tnl )
ENDIF()


+1 −2
Original line number Diff line number Diff line
if( BUILD_CUDA )
   CUDA_ADD_EXECUTABLE( tnl-benchmark-linear-solvers-cuda tnl-benchmark-linear-solvers.cu
                        OPTIONS -DHAVE_CUSPARSE )
   TARGET_LINK_LIBRARIES( tnl-benchmark-linear-solvers-cuda tnl ${CUDA_cusparse_LIBRARY} )
   TARGET_LINK_LIBRARIES( tnl-benchmark-linear-solvers-cuda ${CUDA_cusparse_LIBRARY} )

   install( TARGETS tnl-benchmark-linear-solvers-cuda RUNTIME DESTINATION bin )
endif()

ADD_EXECUTABLE( tnl-benchmark-linear-solvers tnl-benchmark-linear-solvers.cpp )
TARGET_LINK_LIBRARIES( tnl-benchmark-linear-solvers tnl )

install( TARGETS tnl-benchmark-linear-solvers RUNTIME DESTINATION bin )
+1 −2
Original line number Diff line number Diff line
if( BUILD_CUDA )
    CUDA_ADD_EXECUTABLE( tnl-benchmark-spmv tnl-benchmark-spmv.cu )
    TARGET_LINK_LIBRARIES( tnl-benchmark-spmv tnl ${CUDA_cusparse_LIBRARY} )
    TARGET_LINK_LIBRARIES( tnl-benchmark-spmv ${CUDA_cusparse_LIBRARY} )
else()
    ADD_EXECUTABLE( tnl-benchmark-spmv tnl-benchmark-spmv.cpp )
    TARGET_LINK_LIBRARIES( tnl-benchmark-spmv tnl )
endif()

install( TARGETS tnl-benchmark-spmv RUNTIME DESTINATION bin )
Loading