Mercurial > hg > orthanc
comparison Resources/CMake/DcmtkConfiguration.cmake @ 101:428784e59dcd
trying to use log4cplus
author | jodogne |
---|---|
date | Wed, 03 Oct 2012 11:44:46 +0200 |
parents | 27dc762e3dc8 |
children | f2ecbe7d50b8 |
comparison
equal
deleted
inserted
replaced
100:27dc762e3dc8 | 101:428784e59dcd |
---|---|
56 | 56 |
57 else() | 57 else() |
58 include(FindDCMTK) | 58 include(FindDCMTK) |
59 | 59 |
60 include_directories(${DCMTK_INCLUDE_DIR}) | 60 include_directories(${DCMTK_INCLUDE_DIR}) |
61 link_libraries(${DCMTK_LIBRARIES} oflog ofstd wrap) | 61 link_libraries(${DCMTK_LIBRARIES} ofstd wrap) |
62 | 62 |
63 add_definitions( | 63 add_definitions( |
64 -DHAVE_CONFIG_H=1 | 64 -DHAVE_CONFIG_H=1 |
65 ) | 65 ) |
66 | 66 |
67 message("${DCMTK_DIR}/oflog") | |
68 | |
69 IF (EXISTS "${DCMTK_DIR}/oflog") | 67 IF (EXISTS "${DCMTK_DIR}/oflog") |
70 set(DCMTK_BUNDLES_LOG4CPLUS 1) | 68 set(DCMTK_BUNDLES_LOG4CPLUS 1) |
69 link_libraries(${DCMTK_LIBRARIES} oflog) | |
71 else() | 70 else() |
72 set(DCMTK_BUNDLES_LOG4CPLUS 0) | 71 set(DCMTK_BUNDLES_LOG4CPLUS 0) |
73 endif() | 72 endif() |
74 endif() | 73 endif() |
75 | 74 |
76 message("DCMTK includes its own copy of Log4Cplus: ${DCMTK_BUNDLES_LOG4CPLUS}") | 75 message("Does DCMTK includes its own copy of Log4Cplus: ${DCMTK_BUNDLES_LOG4CPLUS}") |