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

OpenPoseConfig.cmake.in 1.4 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
  1. # Compute and install package configuration and version files
  2. get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
  3. get_filename_component(_prefix "${_dir}/../.." ABSOLUTE)
  4. # Import the targets
  5. include("${_prefix}/lib/OpenPose/OpenPose.cmake")
  6. if (@BUILD_CAFFE@)
  7. set(Caffe_INCLUDE_DIRS "${_prefix}/include/caffe")
  8. # set(Caffe_LIBS "${_prefix}/lib/libcaffe.so")
  9. endif (@BUILD_CAFFE@)
  10. # Report other information
  11. set(OpenPose_INCLUDE_DIRS "${_prefix}/include/openpose")
  12. set(OpenPose_VERSION_MAJOR @OpenPose_VERSION_MAJOR@)
  13. set(OpenPose_VERSION_MINOR @OpenPose_VERSION_MINOR@)
  14. set(OpenPose_VERSION_PATCH @OpenPose_VERSION_PATCH@)
  15. set(OpenPose_VERSION @OpenPose_VERSION@)
  16. # Check that the user requested components
  17. # are actually targets that are part of this build
  18. if (OpenPose_FIND_COMPONENTS)
  19. foreach (comp ${OpenPose_FIND_COMPONENTS})
  20. if (NOT TARGET ${comp})
  21. set (OpenPose_${comp}_FOUND 0)
  22. if (OpenPose_FIND_REQUIRED_${comp})
  23. message(FATAL_ERROR "OpenPose ${comp} not available.")
  24. endif (OpenPose_FIND_REQUIRED_${comp})
  25. else (NOT TARGET ${comp})
  26. set(OpenPose_${comp}_FOUND 1)
  27. set(OpenPose_LIBS "${comp};${OpenPose_LIBS}")
  28. endif (NOT TARGET ${comp})
  29. endforeach ()
  30. else (OpenPose_FIND_COMPONENTS)
  31. set(OpenPose_LIBS "openpose")
  32. endif (OpenPose_FIND_COMPONENTS)
  33. if (OpenPose_INCLUDE_DIRS AND OpenPose_LIBS)
  34. set(OpenPose_FOUND 1)
  35. endif (OpenPose_INCLUDE_DIRS AND OpenPose_LIBS)
Tip!

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

Comments

Loading...