diff --git a/CMakeLists.txt b/CMakeLists.txt index aacdadfb..3d51cb91 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -355,4 +355,12 @@ if (STANDALONE_BUILD EQUAL 1) add_subdirectory(doc) add_subdirectory(examples) add_subdirectory(tests) + + # enable dashboard scripting + include (CTest) + + # enable distribution creation + set(CPACK_PACKAGE_VERSION "3.2.0") + set(CPACK_PACKAGE_VENDOR "USGS") + include (CPack) endif() diff --git a/vs2008-64.bat b/vs2008-64.bat new file mode 100644 index 00000000..2d49c26a --- /dev/null +++ b/vs2008-64.bat @@ -0,0 +1,3 @@ +rd /s /q _vs2008-64 +REM ctest -S vs2008-64.cmake -C Release --debug -VV -O vs2008-64.log +ctest -S vs2008-64.cmake -C Release -V -O vs2008-64.log \ No newline at end of file diff --git a/vs2008-64.cmake b/vs2008-64.cmake new file mode 100644 index 00000000..f9cc345e --- /dev/null +++ b/vs2008-64.cmake @@ -0,0 +1,26 @@ +set(CTEST_BUILD_NAME "VS2008-x64-fortran") +set(CTEST_SITE "IGSKAHHWWSCHARL") + +set(CTEST_SOURCE_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}") +set(CTEST_BINARY_DIRECTORY "${CTEST_SCRIPT_DIRECTORY}/_vs2008-64") +set(CTEST_CMAKE_GENERATOR "Visual Studio 9 2008 Win64") + +# Build Fortran test (First build option can't have any beginning whitespace) +set(ADD_BUILD_OPTIONS "-DIPHREEQC_FORTRAN_TESTING:BOOL=ON") + +# Build Shared Libraries +#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF") + +# Build the testing tree +#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_TESTING:BOOL=ON") + +# Enable Fortran module +#set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DIPHREEQC_ENABLE_MODULE:BOOL=ON") + +CTEST_START("Experimental") +CTEST_CONFIGURE(BUILD "${CTEST_BINARY_DIRECTORY}" + OPTIONS "${ADD_BUILD_OPTIONS}") +CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}") +CTEST_TEST(BUILD "${CTEST_BINARY_DIRECTORY}") +CTEST_BUILD(BUILD "${CTEST_BINARY_DIRECTORY}" TARGET PACKAGE) +###CTEST_SUBMIT() \ No newline at end of file