-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevhelpers.cmake
More file actions
27 lines (22 loc) · 898 Bytes
/
devhelpers.cmake
File metadata and controls
27 lines (22 loc) · 898 Bytes
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
##
# For the other developers to use that project (${PROJECT_NAME})
#
# Configure helper (e.g., to easily retrieve the version and compilation flags)
set (CFG_SCRIPT ${PROJECT_NAME}-config)
set (CFG_SCRIPT_PATH bin)
# (Debian) Packaging helper
set (PKGCFG_SCRIPT ${PROJECT_NAME}.pc)
set (PKGCFG_SCRIPT_PATH ${LIBDIR}/pkgconfig)
# GNU Autotools helper (M4 macro file)
set (M4_MACROFILE ${PROJECT_NAME}.m4)
set (M4_MACROFILE_PATH share/aclocal)
# Convert the developer script utilities (basically, just replace
# the @<variable>@ variables)
configure_file (${CFG_SCRIPT}.in ${CFG_SCRIPT} @ONLY)
configure_file (${PKGCFG_SCRIPT}.in ${PKGCFG_SCRIPT} @ONLY)
configure_file (${M4_MACROFILE}.in ${M4_MACROFILE} @ONLY)
#
add_custom_target (devhelpers ALL DEPENDS)
add_dependencies (devhelpers ${CFG_SCRIPT})
add_dependencies (devhelpers ${PKGCFG_SCRIPT})
add_dependencies (devhelpers ${M4_MACROFILE})