# Define module and return the generated name as MODULE_NAME
ALLPIX_UNIQUE_MODULE(MODULE_NAME)

# Add source files to library
ALLPIX_MODULE_SOURCES(${MODULE_NAME} 
    LCIOWriterModule.cpp
    # ADD SOURCE FILES HERE...
)

# Provide standard install target
ALLPIX_MODULE_INSTALL(${MODULE_NAME})

# LCIO library is required for LCIO file writing, obviously
FIND_PACKAGE(LCIO REQUIRED)

IF(LCIO_FOUND)
	# Define module and return the generated name as MODULE_NAME
	ALLPIX_UNIQUE_MODULE(MODULE_NAME)



	# Add source files to library
	ALLPIX_MODULE_SOURCES(${MODULE_NAME} 
	LCIOWriterModule.cpp
    	# ADD SOURCE FILES HERE...
	)

	# Provide standard install target
	ALLPIX_MODULE_INSTALL(${MODULE_NAME})

ELSE(LCIO_FOUND)
	MESSAGE(WARNING "LCIO not found, cannot compile LCIOWriter module.")
ENDIF(LCIO_FOUND)

Build LCIOWriter module only if LCIO is found
Build LCIOWriter module only if LCIO is found
