Commit 84b7e797 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Removed obsolete files in the 'share' directory

- pkg-config files are obsolete and not useful anymore, since TNL is now
  a header-only library
- the FindTNL.cmake module was never actually working and it is also
  useless since TNL is a header-only library
parent d5875544
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -336,7 +336,6 @@ LINK_DIRECTORIES( ${LIBRARY_OUTPUT_PATH} )

# Add all subdirectories
add_subdirectory( src )
add_subdirectory( share )

# Add subdirectories for examples included in the documentation
if( ${WITH_DOC} )

share/CMakeLists.txt

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
add_subdirectory (cmake)
add_subdirectory (pkgconfig)

share/cmake/CMakeFindTNL.cmake

deleted100644 → 0
+0 −28
Original line number Diff line number Diff line
# - Try to find Template Numerical Library TNL
# Once done this will define
#  TNL_FOUND - System has LibXml2
#  TNL_INCLUDE_DIRS - The LibXml2 include directories
#  TNL_LIBRARIES - The libraries needed to use LibXml2
#  TNL_DEFINITIONS - Compiler switches required for using LibXml2

find_package(PkgConfig)
pkg_check_modules(PC_TNL QUIET tnl)
set(TNL_DEFINITIONS ${PC_TNL_CFLAGS_OTHER})

find_path(TNL_INCLUDE_DIR libxml/xpath.h
          HINTS ${PC_LIBXML_INCLUDEDIR} ${PC_LIBXML_INCLUDE_DIRS}
          PATH_SUFFIXES libxml2 )

find_library(TNL_LIBRARY NAMES xml2 libxml2
             HINTS ${PC_LIBXML_LIBDIR} ${PC_LIBXML_LIBRARY_DIRS} )

include(FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set TNL_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args(LibXml2  DEFAULT_MSG
                                  TNL_LIBRARY TNL_INCLUDE_DIR)

mark_as_advanced(TNL_INCLUDE_DIR TNL_LIBRARY )

set(TNL_LIBRARIES ${TNL_LIBRARY} )
set(TNL_INCLUDE_DIRS ${TNL_INCLUDE_DIR} )

share/cmake/CMakeLists.txt

deleted100644 → 0
+0 −2
Original line number Diff line number Diff line
#INSTALL( FILES ${PROJECT_TOOLS_PATH}/share/cmake/CMakeFindTNL.cmake
#         DESTINATION share/cmake )
 No newline at end of file

share/pkgconfig/CMakeLists.txt

deleted100644 → 0
+0 −17
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()
Loading