Index: fact/tools/marsmacros/mc2csv/CMakeLists.txt
===================================================================
--- fact/tools/marsmacros/mc2csv/CMakeLists.txt	(revision 14799)
+++ fact/tools/marsmacros/mc2csv/CMakeLists.txt	(revision 14799)
@@ -0,0 +1,18 @@
+cmake_minimum_required (VERSION 2.6)
+project (mmc2csv)
+
+
+include_directories ("${PROJECT_SOURCE_DIR}/MonteCarlo")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mbase")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mpedestal")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mgui")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mmc")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mgeom")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mraw")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mcorsika")
+include_directories("/fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/mcalib")
+add_subdirectory (MonteCarlo) 
+ 
+# add the executable
+add_executable (mmc2csv mmc2csv.C)
+target_link_libraries (mmc2csv MonteCarlo)
Index: fact/tools/marsmacros/mc2csv/MonteCarlo/CMakeLists.txt
===================================================================
--- fact/tools/marsmacros/mc2csv/MonteCarlo/CMakeLists.txt	(revision 14799)
+++ fact/tools/marsmacros/mc2csv/MonteCarlo/CMakeLists.txt	(revision 14799)
@@ -0,0 +1,2 @@
+add_library(MonteCarlo MonteCarlo.C)
+target_link_libraries(MonteCarlo /fhgfs/groups/app/mc_workshop/software/mars.2012.06.21/libmars.so)
