@@ -644,17 +644,18 @@ \subsection{Hello World!}%
644644The \code {CMakeLists.txt} file contains the following lines:
645645
646646% CMake looks similar to bash with regards to formatting.
647- \begin {minted }[linenos=false]{cmake}
647+ \small
648+ \begin {minted }[baselinestretch=1,fontsize=\footnotesize ,linenos=false,bgcolor=ltgray]{cmake}
648649project(HelloWorld)
649650
650- set(MINIMUM_ITK_VERSION 5.4 )
651+ set(MINIMUM_ITK_VERSION 6.0 )
651652find_package(ITK \$ {MINIMUM_ITK_VERSION} REQUIRED)
652- include( $ {ITK_USE_FILE} )
653+ itk_generate_factory_registration( )
653654
654655add_executable(HelloWorld HelloWorld.cxx)
655-
656- target_link_libraries(HelloWorld $ {ITK_LIBRARIES})
656+ target_link_libraries(HelloWorld $ {ITK_INTERFACE_LIBRARIES})
657657\end {minted}
658+ \normalsize
658659
659660The first line defines the name of your project as it appears in Visual Studio
660661or Eclipse; this line will have no effect with UNIX/Linux Makefiles. The second
@@ -663,9 +664,9 @@ \subsection{Hello World!}%
663664corrected by providing the location of the directory where ITK was compiled or
664665installed on your system. In this case the path to the ITK's binary/installation
665666directory needs to be specified as the value of the \code {ITK\_ DIR} CMake
666- variable. The line \code {include( \$\{ USE \_ ITK \_ FILE \} )} loads the
667- \code {UseITK.cmake} file which contains the configuration information about the
668- specified ITK build. The line starting with \code {add\_ executable} call defines
667+ variable. The line \code {itk \_ generate \_ factory \_ registration( )} generates configuration
668+ to enable input-output factory class registration in the subsequent executable.
669+ The line starting with \code {add\_ executable} call defines
669670as its first argument the name of the executable that will be produced
670671as result of this project. The remaining argument(s) of \code {add\_ executable}
671672are the names of the source files to be compiled. Finally, the
0 commit comments