# ************************************************************************** # * Copyright(c) 1998-2014, ALICE Experiment at CERN, All rights reserved. * # * * # * Author: The ALICE Off-line Project. * # * Contributors are mentioned in the code where appropriate. * # * * # * Permission to use, copy, modify and distribute this software and its * # * documentation strictly for non-commercial purposes is hereby granted * # * without fee, provided that the above copyright notice appears in all * # * copies and that both the copyright notice and this permission notice * # * appear in the supporting documentation. The authors make no claims * # * about the suitability of this software for any purpose. It is * # * provided "as is" without express or implied warranty. * # ************************************************************************** # Module set(MODULE StarLight) # Module include folder include_directories(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/include ${CMAKE_CURRENT_BINARY_DIR} ) # Additional include folders in alphabetical order include_directories( ) # Sources in alphabetical order set(SRCS src/beambeamsystem.cpp src/beam.cpp src/bessel.cpp src/eventchannel.cpp src/eventfilewriter.cpp src/filewriter.cpp src/gammaaluminosity.cpp src/gammaavm.cpp src/gammagammaleptonpair.cpp src/gammagammasingle.cpp src/incoherentPhotonNucleusLuminosity.cpp src/incoherentVMCrossSection.cpp src/inputParameters.cpp src/inputParser.cpp src/lorentzvector.cpp src/narrowResonanceCrossSection.cpp src/nBodyPhaseSpaceGen.cpp src/nucleus.cpp src/photonNucleusCrossSection.cpp src/psifamily.cpp src/randomgenerator.cpp src/readinluminosity.cpp src/starlight.cpp src/starlightparticlecodes.cpp src/starlightparticle.cpp src/starlightStandalone.cpp src/twophotonluminosity.cpp src/upcevent.cpp src/vector3.cpp src/wideResonanceCrossSection.cpp ) set(Starlight_VERSION_MAJOR 9999) set(Starlight_VERSION_MINOR 1) set(Starlight_VERSION_MINOR_MINOR 0) configure_file(${AliRoot_SOURCE_DIR}/STARLIGHT/starlight/starlightconfig.h.in starlightconfig.h ) # Add a library to the project using the specified source files add_library(${MODULE} SHARED ${SRCS}) # Additional compilation flags 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) set_target_properties(${MODULE} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup") endif(${CMAKE_SYSTEM} MATCHES Darwin) # Installation install(TARGETS ${MODULE} ARCHIVE DESTINATION lib LIBRARY DESTINATION lib) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/starlightconfig.h DESTINATION include)