aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/README.md b/README.md
index 27f36e7..228bd98 100644
--- a/README.md
+++ b/README.md
@@ -20,6 +20,17 @@ http://www.opengroup.org/onlinepubs/009695399/functions/dlopen.html
20Using This Library 20Using This Library
21------------------ 21------------------
22 22
23### Using CMake
24Once the library has been installed, add to your project `CMakeLists.txt` :
25~~~
26...
27find_package(dlfcn-win32 REQUIRED)
28...
29target_link_libraries(<target> dlfcn-win32::dl)
30...
31~~~
32
33### Linking caveat
23This library uses the Process Status API in Windows (`psapi.lib`). If you are 34This library uses the Process Status API in Windows (`psapi.lib`). If you are
24linking to the static `dl.lib` or `libdl.a`, then you would need to explicitly 35linking to the static `dl.lib` or `libdl.a`, then you would need to explicitly
25add `psapi.lib` or `-lpsapi` to your linking command, depending on if MinGW is 36add `psapi.lib` or `-lpsapi` to your linking command, depending on if MinGW is