cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR) set(CTEST_SOURCE_NAME hdf-java) set(CTEST_BINARY_NAME ${CTEST_SOURCE_NAME}\\build) set(CTEST_DASHBOARD_ROOT "${CTEST_SCRIPT_DIRECTORY}") set(CTEST_SOURCE_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_SOURCE_NAME}") set(CTEST_BINARY_DIRECTORY "${CTEST_DASHBOARD_ROOT}\\${CTEST_BINARY_NAME}") ################################################################### ### Following Line is one of [Release, RelWithDebInfo, Debug] ##### set(CTEST_BUILD_CONFIGURATION "Release") ################################################################### ################################################################### ######### Following describes compiler ############ set(CTEST_CMAKE_GENERATOR "Visual Studio 11 Win64") ################################################################### ######### Following is for submission to CDash ############ ################################################################### set(MODEL "Experimental") ######### Following describes computer ############ set(SITE_OS_NAME "Windows") set(SITE_OS_VERSION "WIN764") set(SITE_OS_BITS "64") set(SITE_COMPILER_NAME "vs2012") set(SITE_COMPILER_VERSION "11") ## Set the following to unique id your computer ## set(CTEST_SITE "WIN764-VS2012.XXXX") ## following is optional to describe build ## set(SITE_BUILDNAME_SUFFIX "STATIC") ################################################################### ################################################################### ########## Following controls CDash submission ############ #set(LOCAL_SUBMIT "TRUE") ########## Following controls test process ############ #set(LOCAL_SKIP_TEST "TRUE") #set(LOCAL_MEMCHECK_TEST "TRUE") #set(LOCAL_COVERAGE_TEST "TRUE") ########## Following controls cpack command ############ #set(LOCAL_NO_PACKAGE "TRUE") ########## Following controls source update ############ #set(LOCAL_UPDATE "TRUE") #set(REPOSITORY_URL "http://svn.hdfgroup.uiuc.edu/hdf-java/branches/hdf-java-2.10") #comment to use a uncompressed source folder set(CTEST_USE_TAR_SOURCE "hdf-java-2.10.1-source") ################################################################### ################################################################### #### Change default configuration of options in config/cmake/cacheinit.cmake file ### #### format: set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DXXX:YY=ZZZZ") ### uncomment/comment and change the following lines for configuration options ### comment the following line to build shared libraries set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_SHARED_LIBS:BOOL=OFF") #### ext libraries #### ### ext libs need to be built position independent set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_JPEG_WITH_PIC:BOOL=ON") ### ext libs from tgz set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_ALLOW_EXTERNAL_SUPPORT:STRING=TGZ -DTGZPATH:PATH=${CTEST_SCRIPT_DIRECTORY}") ### ext libs from svn #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_ALLOW_EXTERNAL_SUPPORT:STRING=SVN") ### ext libs on system #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DZLIB_LIBRARY:FILEPATH=some_location/lib/zlib.lib -DZLIB_INCLUDE_DIR:PATH=some_location/include") #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DSZIP_LIBRARY:FILEPATH=some_location/lib/szlib.lib -DSZIP_INCLUDE_DIR:PATH=some_location/include") #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DJPEG_LIBRARY:FILEPATH=some_location/lib/jpeglib.lib -DJPEG_INCLUDE_DIR:PATH=some_location/include") #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF4_LIBRARY:FILEPATH=some_location/lib/hdflib.lib;some_location/lib/mfhdflib.lib -DHDF4_INCLUDE_DIR:PATH=some_location/include") #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF5_LIBRARY:FILEPATH=some_location/lib/hdf5lib.lib -DHDF5_INCLUDE_DIR:PATH=some_location/include") ### Create install package with external libraries (szip, zlib, jpeg, hdf5, hdf4) set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_PACKAGE_EXTLIBS:BOOL=ON") ### disable test program builds #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DBUILD_TESTING:BOOL=OFF") ### GUI test control, comment the following line to run the GUT tests set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_SKIP_GUI_TESTS:BOOL=ON") #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_SKIP_GUI_TESTS:BOOL=OFF") ### disable packaging #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DHDF_NO_PACKAGES:BOOL=ON") ### change install prefix #set(ADD_BUILD_OPTIONS "${ADD_BUILD_OPTIONS} -DCMAKE_INSTALL_PREFIX:PATH=install") ################################################################### #set(ENV{JAVAHOME} "\\path-to\\lib\\jvm\\java") include(${CTEST_SCRIPT_DIRECTORY}\\CTestScript.cmake)