Skip to content
Snippets Groups Projects
Commit 9d271153 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added files for pkg-config

parent d89bb28f
No related branches found
No related tags found
No related merge requests found
add_subdirectory (pkgconfig)
INSTALL( FILES tnl-matrix-convert.cfg.desc INSTALL( FILES tnl-matrix-convert.cfg.desc
tnlcurve2gnuplot.cfg.desc tnlcurve2gnuplot.cfg.desc
DESTINATION share/tnl-${tnlVersion} ) DESTINATION share/tnl-${tnlVersion} )
\ No newline at end of file
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()
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}
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}
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}
prefix=@CMAKE_INSTALL_PREFIX@
libdir=${prefix}/lib
includedir=${prefix}/include
version=@tnlVersion@
Name: TNL
Description: Template Numerical Library
URL:
Version: ${version}
Libs: -L${libdir} -ltnl-${version}
Cflags: -I${includedir}/tnl-${version}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment