Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

CMakeLists.txt 2.6 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  1. #
  2. # $Id$
  3. #
  4. # Copyright (c) 1991-2015 by P. Wessel, W. H. F. Smith, R. Scharroo, J. Luis, and F. Wobbe
  5. # See LICENSE.TXT file for copying and redistribution conditions.
  6. #
  7. # This program is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU Lesser General Public License as published by
  9. # the Free Software Foundation; version 3 or any later version.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. # GNU Lesser General Public License for more details.
  15. #
  16. # Contact info: gmt.soest.hawaii.edu
  17. #-------------------------------------------------------------------------------
  18. # run tests
  19. if (DO_TESTS)
  20. # list of test dirs
  21. set (GMT_TEST_DIRS api byteswap blockmean blockmedian filter1d fitcircle
  22. gdal genper gmt_core gmtconvert gmtmath gmtselect gmtsimplify gmtspatial
  23. gmtconnect gmtvector grd2rgb grd2xyz grdblend grdclip grdcontour grdcut
  24. grdedit grdfft grdfilter grdgradient grdhisteq grdimage grdlandmask
  25. grdmask grdmath grdpaste grdproject grdreformat grdsample grdtrack
  26. grdtrend grdvector grdview grdvolume greenspline kml mapproject ogr
  27. project psbasemap pscoast pscontour pshistogram psimage pslegend pslib
  28. psrose psscale pstext psxy psxyz sample1d spectrum1d sph sph2grd splitxyz
  29. surface time trend2d triangulate img meca mgd77 potential spotter x2sys)
  30. # export HAVE_GMT_DEBUG_SYMBOLS
  31. get_directory_property (_dir_defs COMPILE_DEFINITIONS)
  32. list (FIND _dir_defs DEBUG HAVE_GMT_DEBUG_SYMBOLS)
  33. if (HAVE_GMT_DEBUG_SYMBOLS EQUAL -1)
  34. set (HAVE_GMT_DEBUG_SYMBOLS)
  35. else (HAVE_GMT_DEBUG_SYMBOLS EQUAL -1)
  36. set (HAVE_GMT_DEBUG_SYMBOLS TRUE)
  37. endif (HAVE_GMT_DEBUG_SYMBOLS EQUAL -1)
  38. configure_file (gmtest.in gmtest @ONLY)
  39. # Workaround cmake bug 3957: CRLF line ending
  40. find_package (UnixCommands)
  41. if (CYGWIN_INSTALL_PATH)
  42. find_program (D2U d2u
  43. ${CYGWIN_INSTALL_PATH}/bin)
  44. execute_process (COMMAND ${D2U}
  45. ${CMAKE_CURRENT_BINARY_DIR}/gmtest)
  46. endif (CYGWIN_INSTALL_PATH)
  47. # add tests
  48. foreach (_test_dir ${GMT_TEST_DIRS})
  49. # find files RELATIVE so that test NAMEs are not absolute paths
  50. file (GLOB _test_scripts RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
  51. "${CMAKE_CURRENT_SOURCE_DIR}/${_test_dir}/*.sh")
  52. foreach (_test ${_test_scripts})
  53. add_test (NAME ${_test}
  54. WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
  55. COMMAND ${BASH} gmtest ${_test})
  56. endforeach (_test ${_test_scripts})
  57. endforeach (_test_dir ${GMT_TEST_DIRS})
  58. endif (DO_TESTS)
  59. # vim: textwidth=78 noexpandtab tabstop=2 softtabstop=2 shiftwidth=2
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...