Skip to content
CMakeLists.txt 471 B
Newer Older
Valerio Pastore's avatar
Valerio Pastore committed
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")
Valerio Pastore's avatar
Valerio Pastore committed


file(GLOB INCLUDE_FILES "include/*.h")
Valerio Pastore's avatar
Valerio Pastore committed
file(GLOB TCLAP "deps/tclap")
Valerio Pastore's avatar
Valerio Pastore committed

#deps
add_subdirectory(deps/PacketLib)
Valerio Pastore's avatar
Valerio Pastore committed

set(CMAKE_INSTALL_MESSAGE LAZY)
install(
    FILES ${INCLUDE_FILES}
    DESTINATION "${CMAKE_INSTALL_PREFIX}/include/Base_DAQ"
Valerio Pastore's avatar
Valerio Pastore committed
)

install(
Valerio Pastore's avatar
Valerio Pastore committed
    DIRECTORY ${TCLAP}
    DESTINATION "${CMAKE_INSTALL_PREFIX}/include"
Valerio Pastore's avatar
Valerio Pastore committed
)