xo-facet: genfacet wrapper script (play nice w/ nix)
This commit is contained in:
parent
9fcd7f5fb7
commit
d6c5ee911f
1 changed files with 12 additions and 1 deletions
|
|
@ -35,13 +35,24 @@ xo_export_cmake_config(${PROJECT_NAME} ${PROJECT_VERSION} ${PROJECT_NAME}Targets
|
|||
|
||||
# ----------------------------------------------------------------
|
||||
|
||||
# Install the generator script
|
||||
# Install the generator script:
|
||||
install(
|
||||
PROGRAMS codegen/genfacet
|
||||
DESTINATION share/xo-facet/codegen
|
||||
COMPONENT codegen
|
||||
)
|
||||
|
||||
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/genfacet-bin
|
||||
"#!/bin/bash
|
||||
exec \"${CMAKE_INSTALL_FULL_DATADIR}/xo-facet/codegen/genfacet\" \"\$@\"
|
||||
")
|
||||
|
||||
install(
|
||||
PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/genfacet-bin
|
||||
DESTINATION bin
|
||||
RENAME genfacet
|
||||
)
|
||||
|
||||
# Install all .j2 template files
|
||||
install(
|
||||
DIRECTORY codegen/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue