Commit a82afc32 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Merge branch 'cmake_recursive_install' into 'develop'

CMake: simplified installation of header files

See merge request !28
parents 3ccd432b f8cb70c6
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
ADD_SUBDIRECTORY( TNL )
INSTALL( DIRECTORY TNL/ DESTINATION ${TNL_TARGET_INCLUDE_DIRECTORY}
         MESSAGE_NEVER
         FILES_MATCHING PATTERN "*.h" PATTERN "*.hpp" )

# TODO: TNL/Experimental/ should be moved somewhere else, the TNL subdirectory
# should contain only header files
add_subdirectory( TNL/Experimental )

# Note that it is important to start building examples as soon as possible,
# because they take the longest time and other stuff can be pipelined before

src/TNL/CMakeLists.txt

deleted100644 → 0
+0 −40
Original line number Diff line number Diff line
ADD_SUBDIRECTORY( Config )
ADD_SUBDIRECTORY( Containers )
ADD_SUBDIRECTORY( Communicators )
ADD_SUBDIRECTORY( Debugging )
ADD_SUBDIRECTORY( Devices )
ADD_SUBDIRECTORY( Exceptions )
ADD_SUBDIRECTORY( Experimental )
ADD_SUBDIRECTORY( Functions )
ADD_SUBDIRECTORY( Images )
ADD_SUBDIRECTORY( Matrices )
ADD_SUBDIRECTORY( Meshes )
ADD_SUBDIRECTORY( Operators )
ADD_SUBDIRECTORY( Pointers )
ADD_SUBDIRECTORY( Problems )
ADD_SUBDIRECTORY( Solvers )

set( headers
     Atomic.h
     Assert.h
     CudaSharedMemory.h
     CudaStreamPool.h
     File.h
     File_impl.h
     FileName.h
     FileName.hpp
     Object.h
     Object_impl.h
     Logger.h
     Logger_impl.h
     Math.h
     ParallelFor.h
     param-types.h
     StaticFor.h
     String.h
     String_impl.h
     Timer.h
     Timer_impl.h
     StaticVectorFor.h )

INSTALL( FILES ${headers} DESTINATION ${TNL_TARGET_INCLUDE_DIRECTORY} )
+0 −9
Original line number Diff line number Diff line
SET( headers MpiCommunicator.h
             MpiDefs.h
             MPIPrint.h
             MPITypeResolver.h
             NoDistrCommunicator.h
             ScopedInitializer.h
    )

INSTALL( FILES ${headers} DESTINATION ${TNL_TARGET_INCLUDE_DIRECTORY}/Communicators )

src/TNL/Config/CMakeLists.txt

deleted100644 → 0
+0 −13
Original line number Diff line number Diff line
SET( headers
     ConfigEntryType.h
     ConfigEntryBase.h
     ConfigEntry.h
     ConfigEntryList.h
     ConfigDelimiter.h
     ConfigDescription.h
     make_unique.h
     ParameterContainer.h
     parseCommandLine.h
)

INSTALL( FILES ${headers} DESTINATION ${TNL_TARGET_INCLUDE_DIRECTORY}/Config )
+0 −22
Original line number Diff line number Diff line
set( headers ArrayIO.h
             ArrayOperations.h
             ArrayOperationsHost_impl.h
             ArrayOperationsCuda_impl.h
             ArrayOperationsMIC_impl.h
             cuda-prefix-sum.h
             cuda-prefix-sum_impl.h
             CudaMultireductionKernel.h
             CudaReductionBuffer.h
             CudaReductionKernel.h
             Multireduction.h
             Multireduction_impl.h
             Reduction.h
             Reduction_impl.h
             ReductionOperations.h
             VectorOperations.h
             VectorOperationsHost_impl.h
             VectorOperationsCuda_impl.h
             VectorOperationsMIC_impl.h
   )

INSTALL( FILES ${headers} DESTINATION ${TNL_TARGET_INCLUDE_DIRECTORY}/Containers/Algorithms )
Loading