File tree 1 file changed +13
-1
lines changed
1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,19 @@ UDP port mappings on IGD (v1 and v2) devices.
16
16
17
17
### Include in your project
18
18
19
- Please have a look into [ example/CMakeLists.txt] ( example/CMakeLists.txt )
19
+ If you have sources of CPPUPnP somewhere on your disk, simply set the
20
+ ` CPPUPnP_DIR ` variable to point to that CPPUPnP's directory as is done in the
21
+ [ example/CMakeLists.txt] ( example/CMakeLists.txt )
22
+
23
+ If you don't have CPPUPnP on your disk, have cmake download it prior to calling
24
+ ` find_package(CPPUPnP REQUIRED) ` like so:
25
+
26
+ include(FetchContent)
27
+ fetchcontent_declare(CPPUPnP GIT_REPOSITORY <CPPUPnP-GIT-Repository>)
28
+ fetchcontent_makeavailable(CPPUPnP)
29
+
30
+ set(CPPUPnP_DIR ${CMAKE_BINARY_DIR}/_deps/cppupnp-src)
31
+ find_package(CPPUPnP REQUIRED)
20
32
21
33
### Build examples and tests
22
34
You can’t perform that action at this time.
0 commit comments