Skip to content

Commit c5d7696

Browse files
committed
Added Findoup.cmake
1 parent bb4949d commit c5d7696

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

cmake/Findoup.cmake

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)