Browse Source

cmake: Add cdash support.

v0.7.4-release
Tom Hughes 14 years ago
parent
commit
14e6b07f63
  1. 1
      CMakeLists.txt
  2. 7
      CTestConfig.cmake
  3. 5
      Makefile.cmake
  4. 9
      README.cmake

1
CMakeLists.txt

@ -32,6 +32,7 @@ include("cmake/docs.cmake")
# tests
enable_testing()
include(CTest)
add_subdirectory("test/")
# package

7
CTestConfig.cmake

@ -0,0 +1,7 @@
set(CTEST_PROJECT_NAME "node")
set(CTEST_NIGHTLY_START_TIME "00:00:00 EST")
set(CTEST_DROP_METHOD "http")
set(CTEST_DROP_SITE "my.cdash.org")
set(CTEST_DROP_LOCATION "/submit.php?project=node")
set(CTEST_DROP_SITE_CDASH TRUE)

5
Makefile.cmake

@ -27,4 +27,7 @@ package: $(BUILD)/Makefile
test: $(BUILD)/Makefile
cd $(BUILD) && make test
.PHONY: build install clean doc package test
cdash: $(BUILD)/Makefile
cd $(BUILD) && make Experimental
.PHONY: build install clean doc package test cdash

9
README.cmake

@ -26,6 +26,10 @@ To build distro packages (tgz, deb, rpm, PackageMaker):
make -f Makefile.cmake package
To submit test results (see http://my.cdash.org/index.php?project=node):
make -f Makefile.cmake cdash
Using cmake directly:
cd ~/your-node-source-dir
mkdir name-of-build-dir (can be anything)
@ -36,6 +40,11 @@ Using cmake directly:
make commands (make, make install, etc.). The Makefile.cmake file is just a
wrapper around these commands; take a look at it for more details.
Other build targets:
make Experimental
make Nightly
make Continuous
Additional options:
In the CMakeLists.txt, you'll see things like
option(SHARED_V8, ...). If you want to enable any of those options you can

Loading…
Cancel
Save