Warning, /geant4/examples/extended/medical/DICOM/G4DicomCore/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 #----------------------------------------------------------------------------
0002 # Build G4DicomCore library for shared functionality between the two examples
0003 #----------------------------------------------------------------------------
0004
0005 # Locate sources and headers for this project
0006 # NB: headers are included so they will show up in IDEs
0007 #
0008 file(GLOB sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cc)
0009 file(GLOB headers ${CMAKE_CURRENT_SOURCE_DIR}/include/*.hh)
0010
0011 add_library(G4DicomCore STATIC ${headers} ${sources})
0012 target_compile_definitions(G4DicomCore PRIVATE $<$<BOOL:${G4DICOM_USE_HEAD}>:DICOM_USE_HEAD>)
0013 target_include_directories(G4DicomCore PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)
0014 target_link_libraries(G4DicomCore
0015 PUBLIC
0016 ${Geant4_LIBRARIES}
0017 $<$<TARGET_EXISTS:G4DicomReader::G4DicomReader>:G4DicomReader::G4DicomReader>)
0018
0019 add_library(G4DicomCore::G4DicomCore ALIAS G4DicomCore)