Stop cmake warning that we are using an internal target name.

* CMakeLists.txt: Rename "test" to "tests"

* Makefile.in: Chase target name, add a compatibility target for the old
  name.
This commit is contained in:
Michael James Gratton 2016-12-26 10:31:02 +10:30
parent 1ad02284bd
commit b7224d6da3
2 changed files with 10 additions and 6 deletions

View file

@ -151,9 +151,9 @@ include(GlibCompileResourcesSupport)
# Unit tests.
#
# We don't use CMake's enable_testing/add_test built-ins because they
# use ctest.
add_custom_target(test ALL geary-test)
add_dependencies(test geary-test)
# use ctest. It's not called "test" because that is cmake reserved.
add_custom_target(tests ALL geary-test)
add_dependencies(tests geary-test)
#
# Uninstall target

View file

@ -37,12 +37,16 @@ distclean: clean
@-rm -rf $(BUILD_DIR)
@-rm -f Makefile
.PHONY: test
test:
.PHONY: tests
tests:
@$(MAKE) -C $(BUILD_DIR) $@
.PHONY: test
test:
@$(MAKE) -C $(BUILD_DIR) tests
.PHONY: dist
dist: test
dist: tests
@$(MAKE) -C $(BUILD_DIR) dist
@cp build/*.xz .