CMake: removing qpythia from the depedencies
[u/mrichter/AliRoot.git] / MICROCERN / CMakeLists.txt
index 6f5437c..df83a70 100644 (file)
 set(MODULE microcern)
 
 # Module include folder
-include_directories(${CMAKE_SOURCE_DIR}/MICROCERN)
+include_directories(${AliRoot_SOURCE_DIR}/MICROCERN)
 
 # Additional include folders in alphabetical order except ROOT
-include_directories(${ROOT_INCLUDE_DIRS}
+include_directories(${ROOT_INCLUDE_DIR}
                    )
 
 # Sources in alphabetical order
@@ -61,6 +61,15 @@ endif(${CMAKE_SYSTEM} MATCHES Darwin)
 # Headers from sources
 #string(REPLACE ".cxx" ".h" HDRS "${SRCS}")
 
+# System dependent definitions
+
+if(${CMAKE_SYSTEM} MATCHES Darwin)
+    add_definitions(-DCERNLIB_LXIA64 -DCERNLIB_BLDLIB -DCERNLIB_CZ -DCERNLIB_PPC)
+endif(${CMAKE_SYSTEM} MATCHES Darwin)
+if(${CMAKE_SYSTEM} MATCHES Linux)
+    add_definitions(-DCERNLIB_LINUX -DCERNLIB_BLDLIB -DCERNLIB_CZ)
+endif(${CMAKE_SYSTEM} MATCHES Linux)
+
 # Generate the dictionary
 # It will create G_ARG1.cxx and G_ARG1.h / ARG1 = function first argument
 #get_directory_property(incdirs INCLUDE_DIRECTORIES)
@@ -76,7 +85,7 @@ generate_rootmap("${MODULE}" "${LIBDEPS}" "${CMAKE_CURRENT_SOURCE_DIR}/${MODULE}
 add_library(${MODULE} SHARED ${SRCS} ${FSRCS} ${CSRCS})
 
 # Additional compilation flags
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
 
 # System dependent: Modify the way the library is build
 if(${CMAKE_SYSTEM} MATCHES Darwin)