Skip to content

Commit

Permalink
Proper KDE includes and linker arguments in CMakeFile.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
tarmack committed Jan 4, 2011
1 parent fd62777 commit c13ceba
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
@@ -1,13 +1,16 @@
project(Mangonel)
cmake_minimum_required(VERSION 2.6)
find_package(Qt4 REQUIRED)
find_package(KDE4 4.3 REQUIRED)
include (KDE4Defaults)

include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})

include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR} ${KDE4_INCLUDES})

set(Mangonel_SRCS Mangonel.cpp Label.cpp Config.cpp Applications.cpp Paths.cpp Shell.cpp Calculator.cpp main.cpp)
qt4_automoc(${Mangonel_SRCS})
add_executable(mangonel ${Mangonel_SRCS})
target_link_libraries(mangonel ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} plasma kdeui kdecore)
target_link_libraries(mangonel ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4_PLASMA_LIBS} ${KDE4_KIO_LIBS})

install(TARGETS mangonel
DESTINATION "bin"
Expand Down

0 comments on commit c13ceba

Please sign in to comment.