testSharedForward.c.in 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
  3. #if !defined(_WIN32) && !defined(__APPLE__) && !defined(__OpenBSD__)
  4. /* NOLINTNEXTLINE(bugprone-reserved-identifier) */
  5. # define _XOPEN_SOURCE 600
  6. #endif
  7. #if defined(CMAKE_INTDIR)
  8. # define CONFIG_DIR_PRE CMAKE_INTDIR "/"
  9. # define CONFIG_DIR_POST "/" CMAKE_INTDIR
  10. #else
  11. # define CONFIG_DIR_PRE ""
  12. # define CONFIG_DIR_POST ""
  13. #endif
  14. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_DIR_BUILD "@EXEC_DIR@"
  15. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_PATH_BUILD "." CONFIG_DIR_POST
  16. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_PATH_INSTALL 0
  17. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_EXE_BUILD \
  18. CONFIG_DIR_PRE "@KWSYS_NAMESPACE@TestProcess"
  19. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_EXE_INSTALL \
  20. "@KWSYS_NAMESPACE@TestProcess"
  21. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_COMMAND "--command"
  22. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_PRINT "--print"
  23. #define @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_LDD "--ldd"
  24. #if defined(CMAKE_INTDIR)
  25. # define @KWSYS_NAMESPACE@_SHARED_FORWARD_CONFIG_NAME CMAKE_INTDIR
  26. #endif
  27. #include <@KWSYS_NAMESPACE@/SharedForward.h>
  28. int main(int argc, char** argv)
  29. {
  30. return @KWSYS_NAMESPACE@_shared_forward_to_real(argc, argv);
  31. }