-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.cmake
43 lines (40 loc) · 1.17 KB
/
install.cmake
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
include(CMakePackageConfigHelpers)
include(GNUInstallDirs)
# Install Maud's cmake modules and special target sources
install(
# TODO Make sure that we can invoke maud_cli from inside cmake
# modules, to support generation of CMakeLists.txt in
# ExternalProjects via CONFIGURE_COMMAND.
FILES
"${dir}/cmake_modules/Maud.cmake"
"${dir}/cmake_modules/maud_cli.cmake"
"${dir}/cmake_modules/executable.cxx"
"${dir}/cmake_modules/test_.cxx"
"${dir}/cmake_modules/test_.hxx"
"${dir}/cmake_modules/test_main_.cxx"
"${dir}/cmake_modules/_maud_sphinx_adapter.py"
"${dir}/cmake_modules/sphinx_requirements.txt"
DESTINATION
"${CMAKE_INSTALL_LIBDIR}/cmake/Maud"
)
install(
DIRECTORY
"${dir}/cmake_modules/trike"
# FIXME don't install __pycache__
DESTINATION
"${CMAKE_INSTALL_LIBDIR}/cmake/Maud"
)
# Shim and install the Maud CLI
install(
CODE
"
set(install_dir \"$<INSTALL_PREFIX>/${CMAKE_INSTALL_LIBDIR}/cmake/Maud\")
include(\"\${install_dir}/Maud.cmake\")
shim_script_as(\"${MAUD_DIR}/cli/maud\" \"\${install_dir}/maud_cli.cmake\")
"
)
install(
PROGRAMS "${MAUD_DIR}/cli/maud" "${MAUD_DIR}/cli/maud.bat"
DESTINATION "${CMAKE_INSTALL_BINDIR}"
OPTIONAL
)