How set "target_link_libraries"
Closed this issue · 2 comments
kkstun commented
Target "napphello" links to:
nappgui::osapp
but the target was not found.
frang75 commented
Hi @kkstun
I would need some more context to really know what is going on. In general:
-
You must compile and install NAppGUI using these instructions:
https://nappgui.com/en/guide/build.html -
To create a new application, I recommend you follow these steps:
https://nappgui.com/en/guide/newprj.html#h1 -
However, if you want to create your own
CMakeLists.txt
from scratch without using NAppGUI commands, you should use:
...
find_package(nappgui REQUIRED)
...
target_link_libraries(napphello ${NAPPGUI_LIBRARIES})
kkstun commented
Thanks.
I forgot this step:
cmake --install build --config Release --prefix C:/nappgui