-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeDebSrcConfig.cmake.in
42 lines (32 loc) · 1.03 KB
/
CMakeDebSrcConfig.cmake.in
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
set(CMAKEDEBSRC_VERSION @PROJECT_VERSION@)
@PACKAGE_INIT@
set_and_check(CMAKEDEBSRC_SHARE_INSTALL_DIR "@PACKAGE_SHARE_INSTALL_DIR@")
list(APPEND CMAKE_MODULE_PATH ${CMAKEDEBSRC_SHARE_INSTALL_DIR}/cmake/CMakeDebSrc)
include(ExternalProject)
include(BuildDebSrc)
find_program(TAR tar)
if (NOT TAR)
message(WARNING "Unable to find tar program. "
"Won't be able to build source packages.")
endif()
find_program(DEBUILD debuild)
if (NOT DEBUILD)
message(WARNING "Unable to find debuild. "
"Won't be able to build source packages.")
endif()
find_program(DPUT dput)
if (NOT DPUT)
message(WARNING "Unable to find dput. "
"Won't be able to upload to LaunchPad PPA.")
endif()
find_program(PBUILDER_DIST pbuilder-dist)
if (NOT DPUT)
message(WARNING "Unable to find pbuilder-dist. "
"Won't be able to upload to run local tests.")
endif()
find_program(PBUILDER pbuilder)
if (NOT DPUT)
message(WARNING "Unable to find pbuilder. "
"Won't be able to upload to run local tests.")
endif()
check_required_components(CMakeDebSrc)