I realize I may be missing something very basic here.
I am trying to use DCMTK from a CMake project on Mac. I compiled DCMTK configured with CMake (had to turn off ICONV, following the advice here https://github.com/commontk/CTK/issues/178).
In my project, I have the following CMakeLists.txt:
Code: Select all
project(Test)
find_package(DCMTK REQUIRED)
include_directories(${DCMTK_INCLUDE_DIRS})
add_executable(test test.cxx)
target_link_libraries(test ${DCMTK_LIBRARIES})
Cmake gives me this error:
Code: Select all
CMake Error at /Users/fedorov/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find DCMTK (missing: DCMTK_config_INCLUDE_DIR
DCMTK_ofstd_INCLUDE_DIR DCMTK_ofstd_LIBRARY DCMTK_dcmdata_INCLUDE_DIR
DCMTK_dcmdata_LIBRARY DCMTK_dcmimgle_INCLUDE_DIR DCMTK_dcmimgle_LIBRARY)
Call Stack (most recent call first):
/Users/fedorov/local/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/Users/fedorov/local/share/cmake-2.8/Modules/FindDCMTK.cmake:138 (find_package_handle_standard_args)
CMakeLists.txt:3 (find_package)
thank you for your attention
AF