This forum has been archived. All content is frozen. Please use KDE Discuss instead.

CMakeLists.txt

Tags: None
(comma "," separated)
malo
Registered Member
Posts
19
Karma
0
OS

CMakeLists.txt

Thu Sep 10, 2009 9:25 pm
Hello!

I'm confused: Why are the KDE and Qt libs missing.

The cmake file:

#############################################################
# The project
project(ServiceBrowser)


#############################################################
# Packages
find_package(KDE4 REQUIRED)

############################################################
#Include files
include_directories(
${KDE4_INCLUDES}
)

############################################################
#Source files
set(ServiceBrowser_SRCS
main.cpp
mainwindow.cpp
)


############################################################
#Executable
kde4_add_executable(ServiceBrowser ${ServiceBrowser_SRCS})
target_link_libraries(ServiceBrowser ${KDE4_KDEUI_LBS})


############################################################
#Install
install(TARGETS ServiceBrowser ${INSTALL_TARGETS_DEFAULT_ARGS})


The link command line:usr/bin/c++ -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags CMakeFiles/ServiceBrowser.dir/ServiceBrowser_automoc.o CMakeFiles/ServiceBrowser.dir/main.o CMakeFiles/ServiceBrowser.dir/mainwindow.o -o ServiceBrowser -rdynamic -Wl,-rpath,



As you see no KDE or Qt libs. The source code compiles just fine.

/Mats
malo
Registered Member
Posts
19
Karma
0
OS

Re: CMakeLists.txt  Topic is solved

Thu Sep 10, 2009 9:27 pm
Sorry. I spotted the problem right after submitting.... A spelling mistake.
Please ignore this thread (can i kill the thread?)

/Mats


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]