set(MODULE STAT)
# Module include folders
-include_directories(${CMAKE_SOURCE_DIR}/${MODULE})
+include_directories(${AliRoot_SOURCE_DIR}/${MODULE})
# Additional include directories in alphabetical order except ROOT
include_directories(${ROOT_INCLUDE_DIRS}
- ${CMAKE_SOURCE_DIR}/STEER/STEERBase
+ ${AliRoot_SOURCE_DIR}/STEER/STEERBase
)
# Sources in alphabetical order
set(SRCS
add_library(${MODULE} SHARED ${SRCS} G__${MODULE}.cxx)
# Additional compilation flags
-set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "-O -g")
+set_target_properties(${MODULE} PROPERTIES COMPILE_FLAGS "")
+
+# Linking the library
+target_link_libraries(${MODULE} ${LIBDEPS})
# System dependent: Modify the way the library is build
if(${CMAKE_SYSTEM} MATCHES Darwin)