I get the point of INCLUDE_DIRECTORIES (the various files used must be
located). But what is the point of LINK_DIRECTORIES and
TARGET_LINK_LIBRARIES? In a CMakeLists.txt file I have:
..
INCLUDE_DIRECTORIES(${ELASTIX_SRC}/Components/Optimizers/StandardGradientDescent)
...
...
LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent)
...
...
TARGET_LINK_LIBRARIES(test ITKCommon ITKAlgorithms ITKBasicFilters
ITKNumerics ITKIO ITKBasicFilters StandardGradientDescent elxCommon elxCore)
In the first line source files are located in the dir:
(${ELASTIX_SRC}/Components/Optimizers/StandardGradientDescent). But the same
dir is also used as a link library. In the last line various macros are used
in a target link library, but why is that necessary when the
LINK_DIRECTORIES are defined?
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake