



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

set(noatuntyler_PART_SRCS tyler.cpp )

kde4_add_plugin(noatuntyler ${noatuntyler_PART_SRCS})



target_link_libraries(noatuntyler  ${KDE4_KDECORE_LIBS} noatun m )

install(TARGETS noatuntyler  DESTINATION ${PLUGIN_INSTALL_DIR} )


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

set(noatuntyler.bin_SRCS 
   main.cpp 
   file.cpp 
   compute.c 
   display.c 
   renderer.c )


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

target_link_libraries(noatuntyler.bin  ${KDE4_KDECORE_LIBS} m )

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


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

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




#original Makefile.am contents follow:

#INCLUDES= $(all_includes) $(SDL_CFLAGS)
#
#METASOURCES = AUTO
#
#kde_module_LTLIBRARIES = noatuntyler.la
#
#noatuntyler_la_SOURCES = tyler.cpp
#noatuntyler_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
#noatuntyler_la_LIBADD = $(LIB_KFILE) -lnoatun -lm
#
#bin_PROGRAMS = noatuntyler.bin
#
#noatuntyler_bin_SOURCES = main.cpp file.cpp compute.c display.c renderer.c
#noatuntyler_bin_LDFLAGS = $(all_libraries) $(KDE_RPATH)
#noatuntyler_bin_LDADD = $(LIB_KDECORE) -lm $(SDL_LIBS)
#
#noatun_DATA = tyler.plugin tylerstates
#noatundir = $(kde_datadir)/noatun
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp *.h -o $(podir)/tyler.pot
