[CMake] Subprojects and Cmake?

Juhani Karlsson juhani.karlsson at talvi.com
Sun Mar 6 13:00:42 EST 2016


Hi everyone,

I`m having beginner problems how to include another Cmake project into
another properly! (NanoGui)

At the moment I`m using simply the add_subdirectory() command and then
target_link_libraries to link it to the project.
Seems to build fine, but when I try to include NanoGui in the project
cannot find it correctly. What is the preferred workflow for this?

I`m using Clion, GCC and built in CMake 3.3.

Be gentle - total CMake newbie here : ) Image of the project and
CMakeLists.txt in the attachments!

I hope you can help!
Thanks,
- Juhani

-- 
-- 
Juhani Karlsson
3D Artist/TD

Talvi Digital Oy
Tehtaankatu 27a
00150 Helsinki
+358 443443088
juhani.karlsson at talvi.fi
www.vimeo.com/talvi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160306/907795f0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NanoGui.png
Type: image/png
Size: 179227 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160306/907795f0/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NanoGui2.png
Type: image/png
Size: 96160 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160306/907795f0/attachment-0003.png>


More information about the CMake mailing list