Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/medical/DICOM/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 #----------------------------------------------------------------------------
0002 # Setup the project
0003 cmake_minimum_required(VERSION 3.16...3.27)
0004 project(G4DICOM)
0005 
0006 #----------------------------------------------------------------------------
0007 # Find Geant4 package, activating all available UI and Vis drivers by default
0008 # See the documentation for a guide on how to enable/disable specific components
0009 #
0010 find_package(Geant4 REQUIRED ui_all vis_all)
0011 
0012 #----------------------------------------------------------------------------
0013 # We can optional build these examples with support for the DCMTK libraries,
0014 # and use of HEAD data.
0015 option(G4DICOM_USE_DCMTK "Build with DCMTK support" OFF)
0016 option(G4DICOM_USE_HEAD "Download and use HEAD data" OFF)
0017 
0018 # For HEAD data, we need to download the data
0019 #----------------------------------------------------------------------------
0020 # Download DICOM_HEAD data
0021 #
0022 # enable option if environment variable set (backwards-compat)
0023 if(G4DICOM_USE_HEAD)
0024   message(STATUS "Enabling DICOM_HEAD data download")
0025   set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
0026   include(DownloadDICOMData)
0027 endif()
0028 
0029 # If we choose to use DCMTK, we must find it, then build the interface to it 
0030 # TODO: Make this work with DCMTK 3
0031 if(G4DICOM_USE_DCMTK)
0032   add_subdirectory(G4DicomReader)
0033 endif()
0034 
0035 # Build library of functionality shared between the two example applications
0036 add_subdirectory(G4DicomCore)
0037 
0038 # Build the example applications
0039 add_subdirectory(DICOM1)
0040 add_subdirectory(DICOM2)
0041 
0042