trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: March 2012

Re: [trinity-devel] CMake - how to add library to build?

From: Serghei Amelian <serghei@...>
Date: Fri, 9 Mar 2012 02:32:52 +0200
On Friday 09 March 2012 02:09:57 David C. Rankin wrote:
> All,
>
>   How do I add a library to a build in TDE? For some reason, the
> tdegraphics cmake setup does not include libXext. I have patched
> Makefile.am with -lXext and it is not seen by cmake or used for the build??
> (Eg. I patched ksnapshot Makefile.am as follows):

tde_add_executable( ksnapshot AUTOMOC
  SOURCES
    ksnapshotiface.skel main.cpp ksnapshot.cpp regiongrabber.cpp
    windowgrabber.cpp ksnapshotwidget.ui
  LINK kdeprint-shared Xext
  DESTINATION ${BIN_INSTALL_DIR}
)

But this is dirty hack, because the build will fail if devel package of Xext 
is not installed.

PS tde_add_library meaming that you add a target to Makefile, not to add a 
library to a target.

-- 
Serghei