###############################################################################
# CMakefile for tape editor
###############################################################################

INSOURCE_MAKEFILE() # create an in source makefile for us

MIRA_REQUIRE_PACKAGE(TapeEditor)

INCLUDE_DIRECTORIES(
	./include
)

###############################################################################

MIRA_ADD_BINARY(mirataped
	PACKAGE TapeEditor
	SOURCE
		src/TapeEditorApp.C
		src/TapeRendererFundamental.C
		src/TapeRendererGeometry.C
		src/TapeRendererImage.C
		src/TapeRendererPose.C
		src/TapeChannelView.C
		src/TapeCommand.C
		src/TapeEditor.C
		src/TapeDataRenderer.C
		src/TapeDataView.C
		src/TapeThumbView.C
		src/TapeTimeView.C
		src/TapeView.C

	QT_MOCs
		include/TapeChannelView.h
		include/TapeDataView.h
		include/TapeEditor.h
		include/TapeThumbView.h
		include/TapeTimeView.h
		include/TapeRendererImage.h

	QT_QRCs
		resources/TapeEditor.qrc
		
	LINK_LIBS
		GUIFramework
		GUIWidgets
		GUIVisualization
		${OPENCV_IMGPROC_LIBRARY}
		${OPENCV_HIGHGUI_LIBRARY}
		VideoCodecs
)

MIRA_INSTALL_PACKAGE_BASICS(
	DESTINATION tools/mirataped
	PACKAGE     TapeEditor)

MIRA_INSTALL(
	TARGETS     mirataped
	DESTINATION bin
	PACKAGE     TapeEditor)

###############################################################################

# make sure to remove remaining manifest files from old installation
# then remaining libraries do not cause any problems
file(REMOVE ${MIRA_ROOT_DIR}/lib/TapeEditor.manifest)

###############################################################################


