SET(LIBRARY_NAME creaImageIO2)
-SET( SRCS
+
+FILE(GLOB SOURCES_CREAIMAGEIO
# SQLite
- CppSQLite3
+ CppSQLite3.cpp
- # 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
+ creaImageIOGimmick.cpp
+ creaImageIOSynchron.cpp
+ creaImageIOListener.cpp
+ creaImageIOPACSConnection.cpp
# Abstract views
- creaImageIOGimmickView
- creaImageIOTreeView
-
- # The wxWidgets-based components
- creaImageIOWxGimmickView
- creaImageIOWxTreeView
- creaImageIOWxGimmickReaderDialog
- creaImageIOWxGimmickFrame
- creaImageIOWxGimmickPanel
- creaImageIOWxGimmickTools
- creaImageIOWxCustomizeConfigPanel
- creaImageIOWxListenerPanel
- creaImageIOWxEditFieldsPanel
- creaImageIOWxAttributeSelectionPanel
- creaImageIOWxPACSConnectionPanel
- creaImageIOWxDescriptorPanel
+ creaImageIOGimmickView.cpp
+ creaImageIOTreeView.cpp
+
+
#
- BlockScopeWxApp
- creaImageIOGimmickReaderDialog
+ BlockScopeWxApp.cpp
+ creaImageIOGimmickReaderDialog.cpp
# Viewer
- creaImageIOWxViewer
- creaImageIOImagePointerHolder.h
+ creaImageIOWxViewer.cpp
+
# settings
- creaImageIOSettings
-
+ creaImageIOSettings.cpp
+ )
+
+ # Attributed tree data structure
+FILE(GLOB SOURCES_CREAIMAGEIO_TREE
+ creaImageIOTree.cpp
+ creaImageIOTreeAttributeDescriptor.cpp
+ creaImageIOTreeDescriptor.cpp
+ creaImageIOTreeNode.cpp
+ creaImageIOTreeLevelDescriptor.cpp
+ # Tree Handlers
+ creaImageIOTreeHandler.cpp
+ creaImageIOTreeHandlerImageAdder.cpp
+ creaImageIOSQLiteTreeHandler.cpp
+ )
+
+ # Image Readers
+FILE(GLOB SOURCES_CREAIMAGEIO_IMG_READER
+ creaImageIOAbstractImageReader.cpp
+ creaImageIODicomImageReader.cpp
+ creaImageIOImageReader.cpp
+ creaImageIOMultiThreadImageReader.cpp
+ creaImageIOUltrasonixImageReader.cpp
+ creaImageIOVtkImageReader.cpp
+ )
+
+
+# The wxWidgets-based components
+FILE(GLOB SOURCES_CREAIMAGEIO_WX
+ creaImageIOWxGimmickView.cpp
+ creaImageIOWxTreeView.cpp
+ creaImageIOWxGimmickReaderDialog.cpp
+ creaImageIOWxGimmickFrame.cpp
+ creaImageIOWxGimmickPanel.cpp
+ creaImageIOWxGimmickTools.cpp
+ creaImageIOWxCustomizeConfigPanel.cpp
+ creaImageIOWxListenerPanel.cpp
+ creaImageIOWxEditFieldsPanel.cpp
+ creaImageIOWxAttributeSelectionPanel.cpp
+ creaImageIOWxPACSConnectionPanel.cpp
+ creaImageIOWxDescriptorPanel.cpp
+ )
+# Header Files
+FILE(GLOB HEADER_CREAIMAGEIO creaImageIOImagePointerHolder.h)
+FILE(GLOB SOURCES_CREAIMAGEIO_PACS PACS/*.cpp)
+FILE(GLOB HEADER_CREAIMAGEIO_PACS PACS/*.h)
+
+
+SOURCE_GROUP("Source Files" FILES ${SOURCES_CREAIMAGEIO})
+SOURCE_GROUP("Header Files" FILES ${HEADER_CREAIMAGEIO})
+SOURCE_GROUP("Source Files\\GUI" FILES ${SOURCES_CREAIMAGEIO_WX})
+if(BUILD_CREA_PACS)
+ SOURCE_GROUP("Source Files\\PACS" FILES ${SOURCES_CREAIMAGEIO_PACS})
+ SOURCE_GROUP("Header Files\\PACS" FILES ${HEADER_CREAIMAGEIO_PACS})
+endif(BUILD_CREA_PACS)
+SOURCE_GROUP("Source Files\\Readers" FILES ${SOURCES_CREAIMAGEIO_IMG_READER})
+SOURCE_GROUP("Source Files\\Tree" FILES ${SOURCES_CREAIMAGEIO_TREE})
+
+
+SET( PRIMITIVE_SRCS
+ ${SOURCES_CREAIMAGEIO}
+ ${HEADER_CREAIMAGEIO}
+ ${SOURCES_CREAIMAGEIO_IMG_READER}
+ ${SOURCES_CREAIMAGEIO_WX}
+ ${SOURCES_CREAIMAGEIO_TREE}
)
+if( BUILD_CREA_PACS)
+ SET (SRCS
+ ${PRIMITIVE_SRCS}
+ ${SOURCES_CREAIMAGEIO_PACS}
+ ${HEADER_CREAIMAGEIO_PACS}
+ )
+else (BUILD_CREA_PACS)
+ SET (SRCS
+ ${PRIMITIVE_SRCS}
+ )
+endif (BUILD_CREA_PACS)
+
+
+
OPTION(${LIBRARY_NAME}_BUILD_SHARED
"Build ${LIBRARY_NAME} as a shared library (dynamic) ?" ON)
ADD_LIBRARY(${LIBRARY_NAME} ${CREAIMAGEIO_BUILD_SHARED} ${SRCS})
-
TARGET_LINK_LIBRARIES(${LIBRARY_NAME}
${crea_LIBRARIES}
${creaBruker_LIBRARIES}
FILES ${HEADERS}
DESTINATION include/${LIBRARY_NAME}
)
+
+
IF (WIN32)
SET(CREAIMAGEIO_LIB_PATH bin)
ELSE (WIN32)
INSTALL(
TARGETS ${LIBRARY_NAME}
DESTINATION ${CREAIMAGEIO_LIB_PATH})
-
-
- # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE
+
+ # Sets the settings for macro CREA_ADVANCED_INSTALL_LIBRARY_FOR_CMAKE
SET(${LIBRARY_NAME}_INSTALL_FOLDER ${LIBRARY_NAME})
SET(${LIBRARY_NAME}_LIBRARIES ${LIBRARY_NAME})