build: add benchmarks to install target

This commit is contained in:
Max Luebke 2023-04-13 17:17:36 +02:00
parent 32bfd7527e
commit 5c540af2bf
7 changed files with 25 additions and 8 deletions

View File

@ -26,7 +26,7 @@ add_subdirectory(src)
add_subdirectory(R_lib)
add_subdirectory(data)
add_subdirectory(app)
add_subdirectory(bench/dolo_diffu_inner)
add_subdirectory(bench)
# as tug will also pull in doctest as a dependency
set(TUG_ENABLE_TESTING OFF CACHE BOOL "" FORCE)

3
bench/CMakeLists.txt Normal file
View File

@ -0,0 +1,3 @@
add_subdirectory(dolo_diffu_inner)
add_subdirectory(surfex)
add_subdirectory(barite)

View File

@ -0,0 +1,7 @@
install(FILES
barite.R
barite.pqi
db_barite.dat
DESTINATION
share/poet/bench/barite
)

View File

@ -1,7 +1,7 @@
## Time-stamp: "Last modified 2023-04-11 14:29:51 delucia"
## Time-stamp: "Last modified 2023-04-13 17:10:30 mluebke"
database <- normalizePath("./db_barite.dat")
input_script <- normalizePath("./barite.pqi")
database <- normalizePath("../share/poet/bench/barite/db_barite.dat")
input_script <- normalizePath("../share/poet/bench/barite/barite.pqi")
#################################################################
## Section 1 ##

View File

@ -3,5 +3,5 @@ install(FILES
dolo_diffu_inner_large.R
dolo_inner.pqi
DESTINATION
share/poet/bench
share/poet/bench/dolo
)

View File

@ -0,0 +1,7 @@
install(FILES
surfex.R
SurfExBase.pqi
SMILE_2021_11_01_TH.dat
DESTINATION
share/poet/bench/surfex
)

View File

@ -1,7 +1,7 @@
## Time-stamp: "Last modified 2023-02-27 18:33:30 delucia"
## Time-stamp: "Last modified 2023-04-13 17:11:52 mluebke"
database <- normalizePath("./SMILE_2021_11_01_TH.dat")
input_script <- normalizePath("./SurfExBase.pqi")
database <- normalizePath("../share/poet/bench/surfex/SMILE_2021_11_01_TH.dat")
input_script <- normalizePath("../share/poet/bench/surfex/SurfExBase.pqi")
cat(paste(":: R This is a test 1\n"))