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


########### next target ###############

set(kryomolchime_LIB_SRCS kryomolchimeextension.cpp)

kde4_add_library(kryomolchime SHARED ${kryomolchime_LIB_SRCS})

target_link_libraries(kryomolchime ${KDE4_KDECORE_LIBS} ${KDE4_KPARTS_LIBS}  ${KDE4_KHTML_LIBS} ${KDE4_KDEUI_LIBS} GLU)

set_target_properties(kryomolchime PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION})
install(TARGETS kryomolchime ${INSTALL_TARGETS_DEFAULT_ARGS})


########### install files ###############

install(FILES  kryomolchimeextension.desktop DESTINATION ${SERVICES_INSTALL_DIR} )



#original Makefile.am contents follow:

#
#
#
#lib_LTLIBRARIES = libkryomolchime.la
#
#METASOURCES = AUTO
#
#INCLUDES = $(all_includes)
#
#
#AM_CXXFLAGS = -fPIC
#
#noinst_HEADERS = kryomolchimeextension.h
#
#libkryomolchime_la_SOURCES = kryomolchimeextension.cpp
#
#libkryomolchime_la_LDFLAGS =  $(all_libraries)
#
#libkryomolchime_la_LIBADD = $(LIB_KPARTS) $(LIB_KHTML) $(LIB_KDEUI) $(LIB_KDECORE) $(LIB_QT) -lGLU 
#
## this is where the desktop file will go 
#partdesktopdir = $(kde_servicesdir)
#partdesktop_DATA = kryomolchimeextension.desktop
#
#
#
