<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Can&#x27;t use libs after  included]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I am currently using QT Creator to create my own application. I created Project and chose Cmake<br />
This is my Cmakelist.txt:</p>
<pre><code>cmake_minimum_required(VERSION 2.8)

project(RS15)
find_package(PCL 1.8 REQUIRED)

set (IMGUI_INCLUDE_DIRS "/home/nmhieu_brycenvn/Qt5/Test_File/imgui")
set (IMGUI_DEFINITIONS "/home/nmhieu_brycenvn/Qt5/Test_File/imgui")

include_directories(${IMGUI_INCLUDE_DIRS})
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
add_definitions(${IMGUI_DEFINITIONS})

add_executable(${PROJECT_NAME} "main.cpp")
target_link_libraries (RS15 ${PCL_LIBRARIES})

</code></pre>
<p dir="auto">Not sure if I wrote Cmake correctly? I searched for hours to write it down, but the ImGui (a separated library) library couldn't be used, while PCL was fine.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/809669f9-d905-440b-b71c-8fb7fe41d01c.png" alt="03753f27-d5f2-48cf-ac5d-7fd268d5ac01-image.png" class=" img-fluid img-markdown" /><br />
Can someone help me know how to include a separated library in file Cmake?<br />
Thanks for reading!!</p>
]]></description><link>https://forum.qt.io/topic/114445/can-t-use-libs-after-included</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 12:05:01 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/114445.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 05 May 2020 01:48:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can&#x27;t use libs after  included on Tue, 05 May 2020 08:24:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/quys">@<bdi>Quys</bdi></a> You don't link against ImGui libs<br />
You need to extend this line to link properly:</p>
<pre><code>target_link_libraries (RS15 ${PCL_LIBRARIES})
</code></pre>
]]></description><link>https://forum.qt.io/post/592670</link><guid isPermaLink="true">https://forum.qt.io/post/592670</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 05 May 2020 08:24:09 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t use libs after  included on Tue, 05 May 2020 08:03:05 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/jsulm">@<bdi>jsulm</bdi></a><br />
i added this to the cmakelist</p>
<pre><code>set (IMGUI_SOURCE "/home/nmhieu_brycenvn/librealsense/third-party/imgui")
target_include_directories(RS15 PUBLIC ${IMGUI_SOURCE})
</code></pre>
<p dir="auto">But its still not working, am I wrong something?</p>
]]></description><link>https://forum.qt.io/post/592658</link><guid isPermaLink="true">https://forum.qt.io/post/592658</guid><dc:creator><![CDATA[Quys]]></dc:creator><pubDate>Tue, 05 May 2020 08:03:05 GMT</pubDate></item><item><title><![CDATA[Reply to Can&#x27;t use libs after  included on Tue, 05 May 2020 04:45:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/quys">@<bdi>Quys</bdi></a> said in <a href="/post/592594">Can't use libs after included</a>:</p>
<blockquote>
<p dir="auto">target_link_libraries (RS15 ${PCL_LIBRARIES})</p>
</blockquote>
<p dir="auto">You don't link against ImGui libs</p>
]]></description><link>https://forum.qt.io/post/592601</link><guid isPermaLink="true">https://forum.qt.io/post/592601</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 05 May 2020 04:45:19 GMT</pubDate></item></channel></rss>