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