cmake_minimum_required(VERSION 3.9) project(Base_DAQ) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++20") file(GLOB INCLUDE_FILES "include/*.h") file(GLOB TCLAP "include/tclap") file(GLOB PACKETLIB "include/PacketLib") set(CMAKE_INSTALL_MESSAGE LAZY) install( FILES ${INCLUDE_FILES} DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Base_DAQ" ) install( DIRECTORY ${TCLAP} DESTINATION "${CMAKE_INSTALL_PREFIX}/include" ) install( DIRECTORY ${PACKETLIB} DESTINATION "${CMAKE_INSTALL_PREFIX}/include" )