
INSOURCE_MAKEFILE() # create an in source makefile for us

# We need to hide this target if we only want to build the manifest files. Otherwise, CMake identifies that the command
# executed during add_manifest corresponds with the ManifestGen target and tries to build it first of all
IF( NOT DEFINED MIRA_GEN_MANIFESTS_ONLY )

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

MIRA_ADD_BINARY(ManifestGen
	PACKAGE MIRABase
	SOURCE
		src/Main.C
	LINK_LIBS
		MIRABase
		${BOOST_PROGRAM_OPTIONS_LIBRARY}
)

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

MIRA_INSTALL(TARGETS ManifestGen
	DESTINATION bin
	PACKAGE MIRABase)

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

ENDIF()