# Create a library called "" which includes the source files given in # the array . # The extension is already found. Any number of sources could be listed here. set(INCLUDE_DIRECTORIES ${ROOT_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/geobase ${CMAKE_SOURCE_DIR}/parbase ${CMAKE_SOURCE_DIR}/base ${CMAKE_SOURCE_DIR}/field ${CMAKE_SOURCE_DIR}/mcstack ${CMAKE_SOURCE_DIR}/drc/drcprop ) include_directories( ${INCLUDE_DIRECTORIES}) set(LINK_DIRECTORIES ${ROOT_LIBRARY_DIR} ) link_directories( ${LINK_DIRECTORIES}) set(DRCPROP_SRCS PndDrcOptDev.cxx PndDrcOptDevManager.cxx PndDrcOptDevSys.cxx PndDrcOptMatAbs.cxx PndDrcOptMatLithotecQ0.cxx PndDrcOptMatNLAK33A.cxx PndDrcOptMatLLF1.cxx PndDrcOptMatLiF.cxx PndDrcOptMatVacuum.cxx PndDrcOptReflSilver.cxx PndDrcOptReflGray.cxx PndDrcOptReflSurf.cxx PndDrcOptReflPerfect.cxx PndDrcOptVol.cxx PndDrcPhoton.cxx PndDrcSurfAbs.cxx PndDrcSurfCyl.cxx PndDrcSurfQuadFlatDiff.cxx PndDrcSurfPolyFlat.cxx PndDrcSurfPolySphere.cxx PndDrcSurfPolyCyl.cxx PndDrcSurfPolyPara.cxx PndDrcSurfPolyAsphere.cxx PndDrcUtil.cxx PndDrcOptBrik.cxx PndDrcOptTrd2.cxx ) # fill list of header files from list of source files # by exchanging the file extension #CHANGE_FILE_EXTENSION(*.cxx *.h DRCPROP_HEADERS "${DRCPROP_SRCS}") #set(DRCPROP_LINKDEF DrcPropLinkDef.h) #set(DRCPROP_DICTIONARY ${CMAKE_CURRENT_BINARY_DIR}/DrcPropDict.cxx) #ROOT_GENERATE_DICTIONARY(${DRCPROP_HEADERS} ${DRCPROP_LINKDEF} ${DRCPROP_DICTIONARY} ${INCLUDE_DIRECTORIES}) #SET(DRCPROP_SRCS ${DRCPROP_SRCS} ${DRCPROP_DICTIONARY}) add_library(DrcProp SHARED ${DRCPROP_SRCS}) target_link_libraries(DrcProp ${ROOT_LIBRARIES}) set_target_properties(DrcProp PROPERTIES VERSION 0.0.1 SOVERSION 0 ) ################ install ################### install(TARGETS DrcProp DESTINATION ${CMAKE_BINARY_DIR}/lib)