2013-01-26 01:39:57 +04:00
|
|
|
cmake_minimum_required(VERSION 2.8.10.20130115)
|
|
|
|
project(ExternalDataTest NONE)
|
|
|
|
|
|
|
|
include(CTest)
|
|
|
|
|
|
|
|
include(ExternalData)
|
2013-02-03 20:04:57 +04:00
|
|
|
|
|
|
|
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" MATCHES "^/")
|
|
|
|
set(slash /)
|
|
|
|
endif()
|
2013-01-26 01:39:57 +04:00
|
|
|
set(ExternalData_URL_TEMPLATES
|
2013-02-03 20:04:57 +04:00
|
|
|
"file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/%(algo)/%(hash)"
|
2015-02-25 16:11:39 +03:00
|
|
|
"file://${slash}${CMAKE_CURRENT_SOURCE_DIR}/Alt/%(algo:MyAlgoMap1)/%(hash)"
|
2015-01-13 18:03:56 +03:00
|
|
|
"ExternalDataCustomScript://MyScript1/%(algo)/%(hash)"
|
2013-01-26 01:39:57 +04:00
|
|
|
)
|
2015-02-25 16:11:39 +03:00
|
|
|
set(ExternalData_URL_ALGO_MD5_MyAlgoMap1 MyAlgoMap1-md5)
|
2015-01-13 18:03:56 +03:00
|
|
|
set(ExternalData_CUSTOM_SCRIPT_MyScript1 "${CMAKE_CURRENT_SOURCE_DIR}/MyScript1.cmake")
|
2013-01-26 01:39:57 +04:00
|
|
|
set(ExternalData_BINARY_ROOT "${CMAKE_CURRENT_BINARY_DIR}/ExternalData")
|
|
|
|
file(REMOVE_RECURSE ${ExternalData_BINARY_ROOT}) # clean test
|
|
|
|
|
2013-02-21 18:59:29 +04:00
|
|
|
if(MAKE_SUPPORTS_SPACES)
|
|
|
|
set(Data1CheckSpaces -D "DataSpace=DATA{Data Space.dat}")
|
|
|
|
endif()
|
|
|
|
|
2013-01-26 01:39:57 +04:00
|
|
|
ExternalData_Add_Test(Data1
|
|
|
|
NAME Data1Check
|
|
|
|
COMMAND ${CMAKE_COMMAND}
|
|
|
|
-D Data=DATA{Data.dat}
|
2013-02-21 18:59:29 +04:00
|
|
|
${Data1CheckSpaces}
|
2015-01-13 18:03:56 +03:00
|
|
|
-D DataScript=DATA{DataScript.dat}
|
2015-02-25 16:11:39 +03:00
|
|
|
-D DataAlgoMapA=DATA{DataAlgoMapA.dat}
|
|
|
|
-D DataAlgoMapB=DATA{DataAlgoMapB.dat}
|
2014-04-17 17:31:41 +04:00
|
|
|
-D DataMissing=DATA{DataMissing.dat}
|
|
|
|
-D DataMissingWithAssociated=DATA{DataMissing.dat,Data.dat}
|
2013-01-26 01:39:57 +04:00
|
|
|
-D SeriesA=DATA{SeriesA.dat,:}
|
|
|
|
-D SeriesB=DATA{SeriesB.dat,:}
|
|
|
|
-D SeriesC=DATA{SeriesC.dat,:}
|
|
|
|
-D SeriesD=DATA{SeriesD.dat,:}
|
|
|
|
-D SeriesAn=DATA{SeriesAn1.dat,:}
|
|
|
|
-D SeriesBn=DATA{SeriesBn_1.dat,:}
|
|
|
|
-D SeriesCn=DATA{SeriesCn.1.dat,:}
|
|
|
|
-D SeriesDn=DATA{SeriesDn-1.dat,:}
|
2013-01-24 23:12:10 +04:00
|
|
|
-D SeriesMixed=DATA{SeriesMixed.1.dat,:}
|
2013-01-26 01:39:57 +04:00
|
|
|
-D Paired=DATA{PairedA.dat,PairedB.dat}
|
|
|
|
-D Meta=DATA{MetaTop.dat,REGEX:Meta[ABC].dat}
|
2013-01-30 00:12:08 +04:00
|
|
|
-D Directory=DATA{Directory/,A.dat,REGEX:[BC].dat}
|
2013-03-12 23:40:37 +04:00
|
|
|
-D "Semicolons=DATA{Data.dat}\\;DATA{Data.dat}"
|
2013-01-26 01:39:57 +04:00
|
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/Data1Check.cmake
|
|
|
|
)
|
|
|
|
ExternalData_Add_Target(Data1)
|
|
|
|
|
|
|
|
add_subdirectory(Data2)
|
|
|
|
add_subdirectory(Data3)
|
2013-11-13 19:03:36 +04:00
|
|
|
add_subdirectory(Data4)
|