Commit 6e37bce4 authored by Nikola Hardi's avatar Nikola Hardi
Browse files

Update CMakeStructure to be compatible with ROOT 6.18

parent 53842e8a
Pipeline #1232168 passed with stage
in 4 minutes and 54 seconds
...@@ -24,37 +24,56 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) ...@@ -24,37 +24,56 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_SOURCE_DIR}/inc) include_directories(${CMAKE_SOURCE_DIR}/inc)
set(SRCS set(SRCS
TJAlienCollection.cxx src/TJAlienCollection.cxx
TJAlienCredentials.cxx src/TJAlienCredentials.cxx
TJAlien.cxx src/TJAlien.cxx
TJAlienDirectory.cxx src/TJAlienDirectory.cxx
TJAlienDNSResolver.cxx src/TJAlienDNSResolver.cxx
TJAlienFile.cxx src/TJAlienFile.cxx
TJAlienJDL.cxx src/TJAlienJDL.cxx
TJAlienJob.cxx src/TJAlienJob.cxx
TJAlienJobStatus.cxx src/TJAlienJobStatus.cxx
TJAlienJobStatusList.cxx src/TJAlienJobStatusList.cxx
TJAlienMasterJob.cxx src/TJAlienMasterJob.cxx
TJAlienMasterJobStatus.cxx src/TJAlienMasterJobStatus.cxx
TJAlienResult.cxx src/TJAlienResult.cxx
TJAlienResultRewriter.cxx src/TJAlienResultRewriter.cxx
TJAlienSAXHandler.cxx src/TJAlienSAXHandler.cxx
TJAlienSystem.cxx src/TJAlienSystem.cxx
TJClientFile.cxx src/TJClientFile.cxx
TJAlienConnectionManager.cxx src/TJAlienConnectionManager.cxx
) )
string(REGEX REPLACE "T" "src/T" SRCS "${SRCS}")
string(REPLACE ".cxx" ".h" HDRS "${SRCS}") set(HDRS
string(REPLACE "src" "inc" HDRS "${HDRS}") TJAlienCollection.h
set(HDRS ${HDRS} "inc/TAliceCollection.h" "inc/TAliceFile.h" "inc/TAliceJobStatus.h") TJAlienCredentials.h
TJAlien.h
TJAlienDirectory.h
TJAlienDNSResolver.h
TJAlienFile.h
TJAlienJDL.h
TJAlienJob.h
TJAlienJobStatus.h
TJAlienJobStatusList.h
TJAlienMasterJob.h
TJAlienMasterJobStatus.h
TJAlienResult.h
TJAlienResultRewriter.h
TJAlienSAXHandler.h
TJAlienSystem.h
TJClientFile.h
TJAlienConnectionManager.h
TAliceCollection.h
TAliceFile.h
TAliceJobStatus.h
)
ROOT_GENERATE_DICTIONARY(G__${LIBNAME} "${HDRS}" LINKDEF LinkDef.h) ROOT_GENERATE_DICTIONARY(G__${LIBNAME} "${HDRS}" LINKDEF LinkDef.h OPTIONS -Iinc)
add_library(${LIBNAME} SHARED "${SRCS}" G__${LIBNAME}.cxx) add_library(${LIBNAME} SHARED "${SRCS}" G__${LIBNAME}.cxx)
target_link_libraries(${LIBNAME} ${ROOT_LIBRARIES} json-c websockets ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES}) target_link_libraries(${LIBNAME} ${ROOT_LIBRARIES} json-c websockets ${OPENSSL_LIBRARIES} ${ZLIB_LIBRARIES})
install(TARGETS ${LIBNAME} LIBRARY DESTINATION lib) install(TARGETS ${LIBNAME} LIBRARY DESTINATION lib)
install(FILES ${PROJECT_BINARY_DIR}/lib${LIBNAME}.rootmap DESTINATION lib) install(FILES ${PROJECT_BINARY_DIR}/lib${LIBNAME}.rootmap DESTINATION lib)
install(FILES ${PROJECT_BINARY_DIR}/lib${LIBNAME}_rdict.pcm DESTINATION lib) install(FILES ${PROJECT_BINARY_DIR}/lib${LIBNAME}_rdict.pcm DESTINATION lib)
install(FILES ${HDRS} DESTINATION inc) install(DIRECTORY ${CMAKE_SOURCE_DIR}/inc/ DESTINATION include)
install(DIRECTORY ${CMAKE_SOURCE_DIR}/etc/plugins DESTINATION etc) install(DIRECTORY ${CMAKE_SOURCE_DIR}/etc/plugins DESTINATION etc)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment