]> Creatis software - gdcm.git/blob - CMake/FindDicom3Tools.cmake
Fix mistypings
[gdcm.git] / CMake / FindDicom3Tools.cmake
1
2 # this module looks for Dicom3Tools, well right now only dciodvfy
3 #
4 # DCIODVFY_EXECUTABLE - the full path to the dciodvfy
5 # DCIODVFY_FOUND      - If false, don't attempt to use dciodvfy
6
7 # dicom3tools are funny to build you'll need imake
8 # Anyway in order not to pollute your system, you can do an in-source build 
9 # and install which should be clean enough:
10
11 # ./Configure
12 # imake -I./config -DInstallInTopDir
13 # make World
14 # make install (will copy in ./bin)
15 #
16 # then all you need to do is export an env var DICOM3TOOLS pointing to that dir
17
18 FIND_PROGRAM(DCIODVFY_EXECUTABLE
19   dciodvfy
20   "/tmp/"
21   "$ENV{DICOM3TOOLS}/bin"
22   "$ENV{DICOM3TOOLS}/bin/1.2.6.8."
23   )
24
25 MARK_AS_ADVANCED(
26   DCIODVFY_EXECUTABLE
27   )
28
29 IF (NOT DCIODVFY_EXECUTABLE)
30   SET(DCIODVFY_FOUND "NO")
31 ELSE (NOT DCIODVFY_EXECUTABLE)
32   SET(DCIODVFY_FOUND "YES")
33 ENDIF (NOT DCIODVFY_EXECUTABLE)
34