Commit 9d271153 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added files for pkg-config

parent d89bb28f
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
add_subdirectory (pkgconfig)

INSTALL( FILES tnl-matrix-convert.cfg.desc               
               tnlcurve2gnuplot.cfg.desc               
         DESTINATION share/tnl-${tnlVersion} )
+17 −0
Original line number Diff line number Diff line
CONFIGURE_FILE( "tnl.pc.in" "${PROJECT_TOOLS_PATH}/share/pkgconfig/tnl.pc" @ONLY )
INSTALL( FILES ${PROJECT_TOOLS_PATH}/share/pkgconfig/tnl.pc
         DESTINATION share/pkgconfig )

if( CUDA_FOUND )
    CONFIGURE_FILE( "cuda.pc.in" "${PROJECT_TOOLS_PATH}/share/pkgconfig/cuda.pc" @ONLY )
    CONFIGURE_FILE( "tnl-cuda.pc.in" "${PROJECT_TOOLS_PATH}/share/pkgconfig/tnl-cuda.pc" @ONLY )
    INSTALL( FILES ${PROJECT_TOOLS_PATH}/share/pkgconfig/cuda.pc
                   ${PROJECT_TOOLS_PATH}/share/pkgconfig/tnl-cuda.pc
             DESTINATION share/pkgconfig )
endif()

if( OPENMP_FOUND )
    CONFIGURE_FILE( "tnl-openmp.pc.in" "${PROJECT_TOOLS_PATH}/share/pkgconfig/tnl-openmp.pc" @ONLY )
    INSTALL( FILES ${PROJECT_TOOLS_PATH}/share/pkgconfig/tnl-openmp.pc
             DESTINATION share/pkgconfig )
endif()
+11 −0
Original line number Diff line number Diff line
prefix=@CUDA_TOOLKIT_ROOT_DIR@
libdir=${prefix}/lib
includedir=${prefix}/include
version=@CUDA_VERSION_STRING@

Name: CUDA
Description: A parallel programming framework by Nvidia
URL: https://www.nvidia.com/object/cuda_home_new.html
Version: ${version}
Libs:
Cflags: -I${includedir}
+9 −0
Original line number Diff line number Diff line
version=@tnlVersion@

Name: TNL (with CUDA support)
Description: Template Numerical Library (with CUDA support)
URL:
Version: ${version}
Libs:
Cflags: -DHAVE_CUDA -DHAVE_NOT_CXX11
Requires: cuda, tnl = ${version}
+9 −0
Original line number Diff line number Diff line
version=@tnlVersion@

Name: TNL (with OpenMP support)
Description: Template Numerical Library (with OpenMP support)
URL:
Version: ${version}
Libs: -lgomp
Cflags: -DHAVE_OPENMP -fopenmp
Requires: tnl = ${version}
Loading