Renamed toolservices into toolbindings, made it a shared library.
[fail.git] / src / painful / CMakeLists.txt
blob17ae1d37a810b8e0b0a94a36cad416d6dc797f09
1 find_package( KDE4 REQUIRED )
2 find_package( KDevPlatform REQUIRED )
4 # Sigh... Why do people define functions that returns things like "const char"?
5 # Now I have to disable a warning that pops all over the place in Qt headers.
6 add_definitions( ${QT_DEFINITIONS} ${KDE4_DEFINITIONS} -Wno-return-type )
7 link_directories( ${QT_LIBRARY_DIR} )
9 include_directories(
10         ${QT_INCLUDES}
11         ${KDE4_INCLUDES}
12     ${KDEVPLATFORM_INCLUDE_DIR}
13     ${KDEVPLATFORM_INCLUDE_DIR}/sublime
14     ${KDEVPLATFORM_INCLUDE_DIR}/shell
15     ${KDEVPLATFORM_INCLUDE_DIR}/interfaces
16     
17         ${PROJECT_SOURCE_DIR}/gamebindings
18         ${PROJECT_SOURCE_DIR}/gamestorage
19         ${PROJECT_SOURCE_DIR}/toolbindings
23 add_executable( painful
24         main.cpp
25         painfulshellextension.cpp
28 target_link_libraries( painful
29         awgamebindings
30         awtoolbindings
31         ${KDEVPLATFORM_SHELL_LIBRARY}
34 install( TARGETS painful DESTINATION bin )
35 install( FILES painfului.rc DESTINATION share/apps/painful )