13 lines
559 B
CMake
13 lines
559 B
CMake
# ReXGlue developer environment setup target.
|
|
# Provides the `config-rexdevenv` target that installs the pre-commit hook,
|
|
# VS terminal profile, and verifies the toolchain.
|
|
# Requires PowerShell 7 (pwsh) on all platforms.
|
|
|
|
add_custom_target(config-rexdevenv
|
|
COMMAND pwsh -NoProfile -ExecutionPolicy Bypass -Command
|
|
"Import-Module '${REXGLUE_ROOT}/scripts/PSReX' -Force; Invoke-ReXSetup -RepoRoot '${REXGLUE_ROOT}'"
|
|
WORKING_DIRECTORY "${REXGLUE_ROOT}"
|
|
COMMENT "Configuring ReXGlue developer environment..."
|
|
VERBATIM
|
|
USES_TERMINAL
|
|
)
|