add QCanvas Root and viewport pane in gcompose
This commit is contained in:
@@ -8,6 +8,9 @@ set(HEADERS RootMathDense.h
|
||||
muCastorPrimaryVertex.h
|
||||
muCastorMuDetDIGI.h
|
||||
SkinDetectorWriter.h)
|
||||
if(Qt6_FOUND)
|
||||
list(APPEND HEADERS QCanvas.h)
|
||||
endif()
|
||||
|
||||
set(SOURCES ${HEADERS} RootMuonScatter.cpp
|
||||
muCastorMCTrack.cpp
|
||||
@@ -17,6 +20,9 @@ set(SOURCES ${HEADERS} RootMuonScatter.cpp
|
||||
muCastorPrimaryVertex.cpp
|
||||
muCastorMuDetDIGI.cpp
|
||||
SkinDetectorWriter.cpp)
|
||||
if(Qt6_FOUND)
|
||||
list(APPEND SOURCES QCanvas.cpp)
|
||||
endif()
|
||||
|
||||
set(DICTIONARY_HEADERS muCastorMCTrack.h
|
||||
muCastorHit.h
|
||||
@@ -32,11 +38,17 @@ set(LIBRARIES ${ROOT_LIBRARIES}
|
||||
set(rDictName ${PACKAGE_LIBPREFIX}RootDict)
|
||||
root_generate_dictionary(${rDictName} ${DICTIONARY_HEADERS}
|
||||
LINKDEF Linkdef.h)
|
||||
set_source_files_properties(${rDictName}.cxx
|
||||
PROPERTIES GENERATED TRUE)
|
||||
set_source_files_properties(${rDictName}.h
|
||||
PROPERTIES GENERATED TRUE)
|
||||
list(APPEND SOURCES ${rDictName}.cxx)
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${rDictName}.cxx
|
||||
PROPERTIES GENERATED TRUE
|
||||
SKIP_AUTOMOC TRUE
|
||||
SKIP_AUTOUIC TRUE
|
||||
SKIP_AUTORCC TRUE)
|
||||
set_source_files_properties(${CMAKE_CURRENT_BINARY_DIR}/${rDictName}.h
|
||||
PROPERTIES GENERATED TRUE
|
||||
SKIP_AUTOMOC TRUE
|
||||
SKIP_AUTOUIC TRUE
|
||||
SKIP_AUTORCC TRUE)
|
||||
list(APPEND SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${rDictName}.cxx)
|
||||
|
||||
# TODO use a custom target linked to root_generate_dictionary
|
||||
set(R_ARTIFACTS ${CMAKE_CURRENT_BINARY_DIR}/lib${rDictName}_rdict.pcm
|
||||
@@ -55,6 +67,11 @@ set_target_properties(${libname} PROPERTIES
|
||||
CXX_STANDARD 17)
|
||||
target_link_libraries(${libname} ${LIBRARIES})
|
||||
|
||||
if(Qt6_FOUND)
|
||||
set_target_properties(${libname} PROPERTIES AUTOMOC ON)
|
||||
target_link_libraries(${libname} Qt6::Widgets)
|
||||
endif()
|
||||
|
||||
install(TARGETS ${libname}
|
||||
EXPORT "uLibTargets"
|
||||
RUNTIME DESTINATION ${INSTALL_BIN_DIR} COMPONENT bin
|
||||
|
||||
Reference in New Issue
Block a user