SET(LIBRARY_NAME creaImageIO2) SET( SRCS # SQLite CppSQLite3 # wxTreeListCtrl # treelistctrl.cpp # Attributed tree data structure creaImageIOTree creaImageIOTreeNode creaImageIOTreeDescriptor creaImageIOTreeLevelDescriptor creaImageIOTreeAttributeDescriptor # Image readers creaImageIOAbstractImageReader creaImageIOVtkImageReader creaImageIODicomImageReader creaImageIOUltrasonixImageReader creaImageIOImageReader creaImageIOMultiThreadImageReader # Tree Handlers creaImageIOTreeHandler creaImageIOSQLiteTreeHandler # creaImageIOTreeHandlerImageAdder # creaImageIOGimmick creaImageIOSynchron creaImageIOListener creaImageIOPACSConnection # Abstract views creaImageIOGimmickView creaImageIOTreeView # The wxWidgets-based components creaImageIOWxGimmickView creaImageIOWxTreeView creaImageIOWxGimmickReaderDialog creaImageIOWxGimmickFrame creaImageIOWxGimmickPanel creaImageIOWxGimmickTools creaImageIOWxCustomizeConfigPanel creaImageIOWxListenerPanel creaImageIOWxEditFieldsPanel creaImageIOWxAttributeSelectionPanel creaImageIOWxPACSConnectionPanel creaImageIOWxDescriptorPanel # BlockScopeWxApp creaImageIOGimmickReaderDialog # Viewer creaImageIOWxViewer creaImageIOImagePointerHolder.h # settings creaImageIOSettings ) OPTION(${LIBRARY_NAME}_BUILD_SHARED "Build ${LIBRARY_NAME} as a shared library (dynamic) ?" ON) IF (${LIBRARY_NAME}_BUILD_SHARED) SET(CREAIMAGEIO_BUILD_SHARED SHARED) crea_DEFINE(CREAIMAGEIO_BUILD_SHARED) ENDIF(${LIBRARY_NAME}_BUILD_SHARED) crea_DEFINE(CREAIMAGEIO_EXPORT_SYMBOLS) ADD_LIBRARY(${LIBRARY_NAME} ${CREAIMAGEIO_BUILD_SHARED} ${SRCS}) TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${crea_LIBRARIES} ${creaBruker_LIBRARIES} ${WXWIDGETS_LIBRARIES} ${VTK_LIBRARIES} ${GDCM_LIBRARIES} ${BOOST_LIBRARIES} sqlite3) #---------------------------------------------------------------------------- # INSTALLS LIBRARY FILE(GLOB HEADERS "*.h" "*.txx") INSTALL( FILES ${HEADERS} DESTINATION include/${LIBRARY_NAME} ) IF (WIN32) SET(CREAIMAGEIO_LIB_PATH bin) ELSE (WIN32) SET(CREAIMAGEIO_LIB_PATH lib) ENDIF(WIN32) INSTALL( TARGETS ${LIBRARY_NAME} DESTINATION ${CREAIMAGEIO_LIB_PATH}) # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME}) SET(${LIBRARY_NAME}_LIBRARIES ${LIBRARY_NAME}) FILE(RELATIVE_PATH ${LIBRARY_NAME}_BUILD_TREE_RELATIVE_INCLUDE_PATHS ${PROJECT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ) IF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} ) SET(CILFC_EXECUTABLE_OUTPUT_REL_PATH ".") ELSE ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} ) FILE(RELATIVE_PATH CILFC_EXECUTABLE_OUTPUT_REL_PATH ${PROJECT_BINARY_DIR} ${EXECUTABLE_OUTPUT_PATH}) ENDIF ( ${PROJECT_BINARY_DIR} STREQUAL ${EXECUTABLE_OUTPUT_PATH} ) IF(UNIX) SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}) SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS lib) ELSE(UNIX) SET(${LIBRARY_NAME}_BUILD_TREE_RELATIVE_LIBRARY_PATHS ${CILFC_EXECUTABLE_OUTPUT_REL_PATH}) SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_LIBRARY_PATHS bin) ENDIF(UNIX) SET(${LIBRARY_NAME}_INSTALL_TREE_RELATIVE_INCLUDE_PATHS include/${LIBRARY_NAME}) SET(${LIBRARY_NAME}_HAS_ADDITIONAL_CONFIG_FILE TRUE) SET(${LIBRARY_NAME}_ADDITIONAL_CONFIG_FILE ${PROJECT_SOURCE_DIR}/src2/Additional${LIBRARY_NAME}Config.cmake.in) SET(${LIBRARY_NAME}_ADDITIONAL_USE_FILE ${PROJECT_SOURCE_DIR}/src2/AdditionalUse${LIBRARY_NAME}.cmake.in) # Invoke the advanced macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME}) IF (WIN32) SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src2/data) SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/bin/Shared/gimmick) ELSE (WIN32) SET(INPUT_DATA_DIR ${PROJECT_SOURCE_DIR}/src2/data) SET(OUTPUT_DATA_DIR ${PROJECT_BINARY_DIR}/Shared/gimmick) ENDIF (WIN32) CREA_CPDIR(${INPUT_DATA_DIR} ${OUTPUT_DATA_DIR}) #CREA_INSTALL_LIBRARY_FOR_CMAKE(${LIBRARY_NAME}) #----------------------------------------------------------------------------- OPTION( BUILD_DOXYGEN_DOC "Build doxygen doc ?" OFF) IF(BUILD_DOXYGEN_DOC) SUBDIRS(doxygen) ENDIF(BUILD_DOXYGEN_DOC) INCLUDE_DIRECTORIES( # ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}/src2 # ${PROJECT_SOURCE_DIR}/src2/CppSQLite3 )