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