[Cmake] common.cmake

Andy Cedilnik andy.cedilnik at kitware.com
Thu Aug 19 17:33:30 EDT 2004


Hi David,

Actually common.cmake is pretty simple. Mostly documentation:

##########################################################################
#
#
# This script is the common code that all dashboard scripts will include
at
# the end of their script. The bottom of this file includes the actual
code
# while the top is purely documentaiton of the script variables and
process.
#
#
# There are a number of variables that must be set and many that are
# optional. We will start with the required varibales that a script must
# set. The descriptions of the variables will be accompianied by an
example
# of setting it.
#
# These two variables are the the names of the source and binary
directory on
# disk.  They will be appended to the DASHBOARD_ROOT variable to make up
the
# full path to the source and binary directories
# SET (CTEST_SOURCE_NAME VTK)
# SET (CTEST_BINARY_NAME VTKVS71)
#
# which ctest command to use for running the dashboard
# SET (CTEST_COMMAND 
#   "C:/Program Files/CMake/bin/ctest.exe -D Nightly"
#   )
#
# what cmake command to use for configuring this dashboard
# SET (CTEST_CMAKE_COMMAND 
#   "C:/Program Files/CMake/bin/cmake.exe"
#   )
#
#
####################################################################
# The values in this section are optional you can either
# have them or leave them commented out
####################################################################
#
# should ctest wipe the binary tree before running
# SET (CTEST_START_WITH_EMPTY_BINARY_DIRECTORY TRUE)
#
# this is the initial cache to use for the binary tree, be careful to
escape
# any quotes inside of this string if you use it
# SET (CTEST_INITIAL_CACHE "
#
# //Build VTK with shared libraries.
# BUILD_SHARED_LIBS:BOOL=ON
# 
# //Wrap VTK classes into the TCL language.
# VTK_WRAP_TCL:BOOL=ON
#
# ")
#
# if you do not want to use the default location for a dashboard then
set
# this variable to the directory the dashboard should be in
# SET (CTEST_DASHBOARD_ROOT mySpecialDirectory)
#
#
# what cvs command to use for configuring this dashboard
# SET (CTEST_CVS_COMMAND "C:/cygwin/bin/cvs.exe")
#
# set any extra directories to do an update on. These variables are
named
# CTEST_EXTRA_UPDATE_1 through _9 and each variable if set should have
two
# values. The first is the directory to update and the second is the cvs
# flags to pass to the update command.
# SET (CTEST_EXTRA_UPDATES_1 "C:/Dashboards/My Tests/VTKData" "-dAP")
#
#
# This is the end of the current documentation
########################################################################

# specify how long to run the continuous in minutes
# SET (CTEST_CONTINUOUS_DURATION 360)
# SET (CTEST_CONTINUOUS_MINIMUM_INTERVAL 10)


########################################################################
# you do not need to edit these values, they will be computed from the 
# settings made above
####################################################################

# if the script didn't specify a DASHBOARD_ROOT then use the default
IF (NOT CTEST_DASHBOARD_ROOT)
  IF (WIN32)
    SET (CTEST_DASHBOARD_ROOT "C:/Dashboards/My Tests")
  ELSE (WIN32)
    SET (CTEST_DASHBOARD_ROOT "$ENV{HOME}/Dashboards/My Tests")
  ENDIF (WIN32)
ENDIF (NOT CTEST_DASHBOARD_ROOT)
  
SET (CTEST_SOURCE_DIRECTORY
"${CTEST_DASHBOARD_ROOT}/${CTEST_SOURCE_NAME}")
SET (CTEST_BINARY_DIRECTORY
"${CTEST_DASHBOARD_ROOT}/${CTEST_BINARY_NAME}")


On Thu, 2004-08-19 at 17:30, David Somers wrote:
> Hi,
> 
> I see that http://www.cmake.org/HTML/TestingSetup.html has been updated :-)
> That looks like a much easier way to do things.
> 
> Could you explain where common.cmake is? I can't find it!
> 
> Cheers,
> 
> David
> 
> -----Original Message-----
> From: cmake-bounces at www.cmake.org [mailto:cmake-bounces at www.cmake.org]On
> Behalf Of David Somers
> Sent: Thursday, 19 August, 2004 20:08
> To: Cmake LIST
> Subject: [Cmake] Nightly - Win32 Debug?
> 
> 
> I've just managed to get Dart working :-), and as part of that I want to do
> nightly builds.
> 
> However, when CMake (2.0.3) generates VS6 project files, I'm only getting
> 'Experimental' and
> ExperimentalSubmit' projects... shouldn't it also generate 'Nightly' too?
> 
> (I also tried this against the CMake source - just in case I was doing
> something wrong in my CMakeLists.txt files, and I get the same thing...
> http://www.cmake.org/HTML/TestingSetup.html talks about a "Nightly - Win32
> Debug" project and I'm just not getting it generated).

-- 
				Andy



More information about the Cmake mailing list