mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
Add an IDE-friendly CMake target
This adds the target build_root, which is a target that installs fish into a directory under the build path.
This commit is contained in:
parent
f0ce62c873
commit
cd47f9b1a2
1 changed files with 6 additions and 0 deletions
|
@ -184,3 +184,9 @@ SET_PROPERTY(TARGET CHECK-FISH-BUILD-VERSION-FILE build_fish_pc
|
|||
test_prep tests_buildroot_target
|
||||
build_lexicon_filter
|
||||
PROPERTY FOLDER cmake/InstallTargets)
|
||||
|
||||
# Make a target build_root that installs into the buildroot directory, for testing.
|
||||
SET(BUILDROOT_DIR ${CMAKE_CURRENT_BINARY_DIR}/buildroot)
|
||||
ADD_CUSTOM_TARGET(build_root
|
||||
COMMAND DESTDIR=${BUILDROOT_DIR} ${CMAKE_COMMAND}
|
||||
--build ${CMAKE_CURRENT_BINARY_DIR} --target install)
|
||||
|
|
Loading…
Reference in a new issue