Index: /trunk/Mars/CMakeLists.txt
===================================================================
--- /trunk/Mars/CMakeLists.txt	(revision 19275)
+++ /trunk/Mars/CMakeLists.txt	(revision 19276)
@@ -53,4 +53,7 @@
 # ********* Requirements **********
 # *********************************
+
+# Inlclude the main source AND build dir itself
+#SET(CMAKE_INCLUDE_CURRENT_DIR ON)
 
 # =========== help2man ============
@@ -242,4 +245,5 @@
         OPTIONS -p -D__MARS__ -DHAVE_ZLIB)
 
+SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/dictionary)
 ADD_LIBRARY(mars SHARED dictionary/MARS.cxx) # CMAKE_POSITION_INDEPENDENT_CODE
 TARGET_LINK_LIBRARIES(mars
@@ -263,7 +267,7 @@
 # rootlogon.C finds the shared object only if the libmars.so is in the same directory than the dictionary files
 # there is a way to create a map file with rootcling - but I haven#t yet fugured out how. Note that a link is not enough
-ADD_CUSTOM_COMMAND(TARGET mars POST_BUILD
-	COMMAND cp -f ${PROJECT_BINARY_DIR}/libmars.so ${PROJECT_BINARY_DIR}/dictionary/libmars.so
-	COMMENT "Copying libmars.so to ${PROJECT_BINARY_DIR}/dictionary")
+#ADD_CUSTOM_COMMAND(TARGET mars POST_BUILD
+#	COMMAND cp -f ${PROJECT_BINARY_DIR}/libmars.so ${PROJECT_BINARY_DIR}/dictionary/libmars.so
+#	COMMENT "Copying libmars.so to ${PROJECT_BINARY_DIR}/dictionary")
 
 #---Create a shared library with geneated dictionary
