-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
44 lines (35 loc) · 1.3 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# ======================================================================
# artdaq-daqinterface main build file
#
# cd .../path/to/build/directory
# source .../path/to/artdaq-utilities/ups/setup_for_development
# cmake [-DCMAKE_INSTALL_PREFIX=/install/path]
# -Dqualifier:STRING=$CETPKG_QUAL
# -DCMAKE_BUILD_TYPE=$CETPKG_TYPE
# $CETPKG_SOURCE
# make
# make test
# make install
# make package
# ======================================================================
# use cmake 2.8 or later
cmake_minimum_required (VERSION 3.16)
find_package(cetmodules)
project(artdaq_daqinterface VERSION 3.14.01)
set(artdaq_daqinterface_NOARCH TRUE)
include(CetCMakeEnv)
cet_cmake_env()
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
cet_set_compiler_flags(DIAGS VIGILANT
WERROR
NO_UNDEFINED
EXTRA_FLAGS -pedantic
)
#cet_report_compiler_flags()
INSTALL(DIRECTORY bin DESTINATION . FILE_PERMISSIONS USE_SOURCE_PERMISSIONS)
INSTALL(DIRECTORY docs DESTINATION . FILE_PERMISSIONS USE_SOURCE_PERMISSIONS)
INSTALL(DIRECTORY rc DESTINATION . FILE_PERMISSIONS USE_SOURCE_PERMISSIONS)
INSTALL(DIRECTORY simple_test_config DESTINATION . FILE_PERMISSIONS USE_SOURCE_PERMISSIONS)
INSTALL(DIRECTORY utils DESTINATION . FILE_PERMISSIONS USE_SOURCE_PERMISSIONS)
INSTALL(FILES source_me DESTINATION .)
cet_cmake_config()