We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb4949d commit c5d7696Copy full SHA for c5d7696
cmake/Findoup.cmake
@@ -0,0 +1,19 @@
1
+find_path(OUP_INCLUDE_DIR observable_unique_ptr.hpp
2
+ HINTS ${OUP_DIR}
3
+ PATH_SUFFIXES oup include/oup
4
+)
5
+
6
+set(OUP_INCLUDE_DIRS ${OUP_INCLUDE_DIR})
7
8
+include(FindPackageHandleStandardArgs)
9
10
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(oup REQUIRED_VARS OUP_INCLUDE_DIRS)
11
12
+mark_as_advanced(OUP_INCLUDE_DIR)
13
14
+if (OUP_FOUND)
15
+ if(NOT TARGET oup::oup)
16
+ add_library(oup::oup IMPORTED INTERFACE)
17
+ target_include_directories(oup::oup INTERFACE "${OUP_INCLUDE_DIRS}")
18
+ endif()
19
+endif()
0 commit comments