Fix library cmake file

pull/1/head
Timothy Pearson 13 years ago
parent 6af8464b4a
commit 0c4bc5daa3

@ -1,48 +1,55 @@
SET(libkbfxcommonsrc #################################################
kbfxkiodownload.cpp #
kbfxpixmaplabel.cpp # (C) 2011 Timothy Pearson
kbfxconfig.cpp # kb9vqf (AT) pearsoncomputing.net
kbfxpushbutton.cpp #
kbfxthemesdata.cpp # Improvements and feedback are welcome
kbfxfontchooser.cpp #
kbfxplasmapixmapprovider.cpp # This file is released under GPL >= 2
) #
#################################################
FILE(GLOB HEADERS *.h)
include_directories(
IF (NOT USE_KDE4) ${TQT_INCLUDE_DIRS}
KDE3_AUTOMOC(${libkbfxcommonsrc}) ${TDE_INCLUDE_DIR}
${CMAKE_BINARY_DIR}
ADD_LIBRARY(kbfxcommon SHARED ${libkbfxcommonsrc}) ${CMAKE_BINARY_DIR}/src
SET_TARGET_PROPERTIES(kbfxcommon ${CMAKE_SOURCE_DIR}/src
PROPERTIES ${CMAKE_SOURCE_DIR}/kio/kio
COMPILE_FLAGS ${CMAKE_SHARED_LIBRARY_CXX_FLAGS}) )
# SET_TARGET_PROPERTIES(kbfxcommon PROPERTIES
# SOVERSION ${LIB_MAJOR} link_directories(
# VERSION ${APPLICATION_VERSION}) ${TQT_LIBRARY_DIRS}
TARGET_LINK_LIBRARIES(kbfxcommon )
${QT_AND_TDECORE_LIBS}
${KDE3_KIO_LIBRARY}
${KDE3_UI_LIBRARY} ##### other data ################################
${KDE3_KHTML_LIBRARY}
${M_LIBRARY} install( FILES locate.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
) install( FILES locater.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
install( FILES rlocate.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
KDE3_INSTALL_LIBTOOL_FILE(kbfxcommon ${LIB_INSTALL_DIR}) install( FILES locate.desktop DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders )
ELSE (NOT USE_KDE4)
KDE4_AUTOMOC(${libkbfxcommonsrc})
##### libkbfxcommonsrc ##############################
KDE4_ADD_LIBRARY(kbfxcommon SHARED ${libkbfxcommonsrc})
TARGET_LINK_LIBRARIES(kbfxcommon set( target kbfxcommon )
${KDE4_TDECORE_LIBS}
${KDE4_KIO_LIBS} set( ${target}_SRCS
${KDE4_TDEUI_LIBS} kbfxkiodownload.cpp kbfxpixmaplabel.cpp kbfxconfig.cpp
${KDE4_KHTML_LIBS} kbfxpushbutton.cpp kbfxthemesdata.cpp kbfxfontchooser.cpp
${M_LIBRARY} kbfxplasmapixmapprovider.cpp
) )
KDE4_INSTALL_LIBTOOL_FILE(kbfxcommon ${LIB_INSTALL_DIR}) tde_add_library( ${target} SHARED AUTOMOC
ENDIF (NOT USE_KDE4) SOURCES ${${target}_SRCS}
# VERSION 4.2.0
INSTALL(TARGETS kbfxcommon DESTINATION ${LIB_INSTALL_DIR}) LINK DCOP-shared tdecore-shared tdeui-shared kio-shared khtml-shared ${M_LIBRARY}
INSTALL(FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/common) DESTINATION ${LIB_INSTALL_DIR}
)
##### headers #######################################
file( GLOB HEADERS *.h )
install( FILES ${HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/kbfx/common )

Loading…
Cancel
Save