diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 39 |
1 files changed, 17 insertions, 22 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b2aa267..e88a792 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,3 @@ -include( ConfigureChecks.cmake ) - include_directories( ${CMAKE_BINARY_DIR} ${CMAKE_CURRENT_BINARY_DIR} @@ -22,6 +20,9 @@ include_directories( ${GTK2_INCLUDE_DIRS} ${GLIB2_INCLUDE_DIRS} ${DBUS-GLIB_INCLUDE_DIRS} + ${X11_XShm_INCLUDE_PATH} + ${X11_Xv_INCLUDE_PATH} + ${X11_Xutil_INCLUDE_PATH} ) link_directories( @@ -61,14 +62,13 @@ tde_add_library( kmplayercommon SHARED AUTOMOC kmplayer_rss.cpp kmplayer_atom.cpp kmplayer_xspf.cpp triestring.cpp kmplayerpartbase.skel - VERSION 1.0.0 LINK tdecore-shared tdeui-shared tdeio-shared tdeparts-shared tdeutils-shared - tdemediaplayer + tdemediaplayer-shared ${CAIRO_LIBRARIES} ${EXPAT_LIBRARIES} ${XINE_LIBRARIES} @@ -79,6 +79,8 @@ tde_add_library( kmplayercommon SHARED AUTOMOC ${GSTREAMER_LIBRARIES} ${DBUS-TQT_LIBRARIES} + VERSION 1.0.0 + DESTINATION ${LIB_INSTALL_DIR} ) @@ -136,7 +138,7 @@ tde_add_executable( kxineplayer AUTOMOC tdeio-shared kmplayerbackend-static ${XINE_LIBRARIES} - ${XEXT_LIBRARIES} + ${X11_Xext_LIB} DESTINATION ${BIN_INSTALL_DIR} ) @@ -157,6 +159,7 @@ tde_add_executable( kxvplayer AUTOMOC tdeio-shared kmplayerbackend-static ${X11_Xv_LIB} + ${X11_Xext_LIB} DESTINATION ${BIN_INSTALL_DIR} ) @@ -189,7 +192,7 @@ endif() if( BUILD_KNPPLAYER ) -tde_add_executable( knpplayer AUTOMOC +tde_add_executable( knpplayer SOURCES npplayer.c @@ -228,34 +231,26 @@ endif() ##### other data install( - FILES - bookmarks.xml - pluginsinfo - noise.gif - kmplayerui.rc - kmplayerpartui.rc - - DESTINATION ${DATA_INSTALL_DIR}/kmplayer + FILES bookmarks.xml pluginsinfo noise.gif + kmplayerui.rc kmplayerpartui.rc + DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) install( FILES kmplayerrc DESTINATION ${CONFIG_INSTALL_DIR} ) -install( - FILES kmplayer_part.desktop +tde_create_translated_desktop( + SOURCE kmplayer_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) if( BUILD_KOFFICE_PLUGIN ) -install( - FILES kmplayer_koffice.desktop +tde_create_translated_desktop( + SOURCE kmplayer_koffice.desktop DESTINATION ${SERVICES_INSTALL_DIR} ) endif() |