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

config-gmt-windows.sh 994 B

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
  1. #!/usr/bin/env bash
  2. # Configure GMT settings under Windows
  3. # To return a failure if any commands inside fail
  4. set -e
  5. cat > cmake/ConfigUser.cmake << 'EOF'
  6. set (CMAKE_INSTALL_PREFIX "$ENV{INSTALLDIR}")
  7. set (GSHHG_ROOT "$ENV{COASTLINEDIR}/gshhg")
  8. set (DCW_ROOT "$ENV{COASTLINEDIR}/dcw")
  9. set (GMT_ENABLE_OPENMP TRUE)
  10. EOF
  11. if [[ "$TEST" == "true" ]]; then
  12. cat >> cmake/ConfigUser.cmake << 'EOF'
  13. enable_testing()
  14. set (DO_EXAMPLES TRUE)
  15. set (DO_TESTS TRUE)
  16. set (DO_API_TESTS ON)
  17. set (SUPPORT_EXEC_IN_BINARY_DIR TRUE)
  18. # Turn on testing of upcoming long-option syntax for common GMT options
  19. add_definitions(-DUSE_COMMON_LONG_OPTIONS)
  20. # Turn on testing of upcoming long-option syntax for module options
  21. add_definitions(-DUSE_MODULE_LONG_OPTIONS)
  22. EOF
  23. fi
  24. if [[ "$BUILD_DOCS" == "true" ]]; then
  25. cat >> cmake/ConfigUser.cmake << 'EOF'
  26. set (DO_ANIMATIONS TRUE)
  27. EOF
  28. fi
  29. echo ""
  30. echo "Using the following cmake configuration:"
  31. cat cmake/ConfigUser.cmake
  32. echo ""
  33. # Turn off exit on failure.
  34. set +e
Tip!

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

Comments

Loading...