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:
ridiculousfish 2017-11-05 11:25:08 -08:00
parent f0ce62c873
commit cd47f9b1a2

View File

@ -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)