



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

set(noatunnexscope_PART_SRCS noatunplugin.cpp )

kde4_add_plugin(noatunnexscope ${noatunnexscope_PART_SRCS})



target_link_libraries(noatunnexscope  ${KDE4_KDECORE_LIBS} noatun )

install(TARGETS noatunnexscope  DESTINATION ${PLUGIN_INSTALL_DIR} )


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

set(nexscope.bin_SRCS 
   renderers.cpp 
   bitmappool.cpp 
   nex.cpp 
   output.cpp 
   input.cpp 
   gui.cpp 
   regionwidget.cpp 
   convolve.c )

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

target_link_libraries(nexscope.bin   ${KDE4_KDEUI_LIBS} m noatun )

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


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

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




#original Makefile.am contents follow:

#INCLUDES= $(all_includes) $(SDL_CFLAGS)
#
#METASOURCES = AUTO
#
#kde_module_LTLIBRARIES = noatunnexscope.la
#
#noatunnexscope_la_SOURCES = noatunplugin.cpp
#noatunnexscope_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
#noatunnexscope_la_LIBADD = $(LIB_KFILE) -lnoatun
#
#bin_PROGRAMS = nexscope.bin
#
##renderers.cpp must be first for enable-final
#nexscope_bin_SOURCES = renderers.cpp bitmappool.cpp nex.cpp output.cpp input.cpp gui.cpp regionwidget.cpp convolve.c
#nexscope_bin_LDFLAGS = $(all_libraries) $(KDE_RPATH) $(SDL_LIBS)
#nexscope_bin_LDADD = $(LIB_KDEUI) -lm  -lnoatun $(SDL_LIBS)
#
#noatun_DATA = nexscope.plugin
#noatundir = $(kde_datadir)/noatun
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp *.h -o $(podir)/nexscope.pot
