



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

set(noatunsynaescope_PART_SRCS synaescope.cpp cmodule.cpp )

kde4_add_plugin(noatunsynaescope ${noatunsynaescope_PART_SRCS})



target_link_libraries(noatunsynaescope  ${KDE4_KDECORE_LIBS} noatun m )

install(TARGETS noatunsynaescope  DESTINATION ${PLUGIN_INSTALL_DIR} )


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

set(noatunsynaescope.bin_SRCS 
   core.cpp 
   main.cpp 
   sdlwrap.cpp 
   ui.cpp )

kde4_add_executable(noatunsynaescope.bin ${noatunsynaescope.bin_SRCS})

target_link_libraries(noatunsynaescope.bin   ${KDE4_KDEUI_LIBS} noatun )

install(TARGETS noatunsynaescope.bin DESTINATION ${BIN_INSTALL_DIR})


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

install( FILES synaescope.plugin  DESTINATION  ${DATA_INSTALL_DIR}/noatun )

kde4_install_icons( ${ICON_INSTALL_DIR}   )




#original Makefile.am contents follow:

#INCLUDES= $(all_includes) $(SDL_CFLAGS)
#
#METASOURCES = AUTO
#
#kde_module_LTLIBRARIES = noatunsynaescope.la
#
#noatunsynaescope_la_SOURCES = synaescope.cpp cmodule.cpp
#noatunsynaescope_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
#noatunsynaescope_la_LIBADD = $(LIB_KFILE) -lnoatun -lm
#
#bin_PROGRAMS = noatunsynaescope.bin
#
#noatunsynaescope_bin_SOURCES = core.cpp main.cpp sdlwrap.cpp ui.cpp
#noatunsynaescope_bin_LDFLAGS = $(all_libraries) $(KDE_RPATH)
#noatunsynaescope_bin_LDADD = $(LIB_KDEUI) -lnoatun $(SDL_LIBS)
#
#noatun_DATA = synaescope.plugin
#noatundir = $(kde_datadir)/noatun
#
#KDE_ICON = AUTO
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp *.h -o $(podir)/synaescope.pot
