forked from qtdcm/qtdcm
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new qt widgets for the future version of the pre operative planni…
…ng application git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/igns/trunk/QtWidgets/QtDcm@392 6d9e27ec-2e28-0410-8ed1-dee9ee4ba72e
- Loading branch information
abadie
committed
Dec 1, 2009
0 parents
commit 1b0cd28
Showing
22 changed files
with
1,396 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DESCRIPTION | ||
=========== | ||
|
||
Welcome in the installation process of QtDCM. | ||
|
||
Enjoy QtDCM ! |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Welcome to installation. This program will guide you through the installation of this software. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DESCRIPTION | ||
=========== | ||
|
||
Welcome in the installation process of QtDCM. | ||
|
||
Enjoy QtDCM ! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#CPack config file | ||
if(BUILD_PACKAGE) | ||
message(STATUS "Configuring CPack") | ||
if(WIN32) | ||
option(BUILD_PACKAGE_BINARY "Build runtime package" ON) | ||
option(BUILD_PACKAGE_SDK "Build development package" OFF) | ||
mark_as_advanced(BUILD_PACKAGE BUILD_PACKAGE_BINARY BUILD_PACKAGE_SDK) | ||
else(WIN32) | ||
if (APPLE) | ||
option(BUILD_PACKAGE_BINARY "Package binary distribution of QtDCM" ON) | ||
option(BUILD_PACKAGE_SDK "Package development distribution of QtDCM" OFF) | ||
mark_as_advanced(BUILD_PACKAGE BUILD_PACKAGE_BINARY BUILD_PACKAGE_SDK) | ||
else (APPLE) # For Linux | ||
option(BUILD_PACKAGE_DEBIAN "Build debian package" ON) | ||
option(BUILD_PACKAGE_RPM "Build rpm package" ON) | ||
option(BUILD_PACKAGE_BINARY "Package binary distribution of QtDCM" ON) | ||
option(BUILD_PACKAGE_DEV "Package development distribution of QtDCM" OFF) | ||
mark_as_advanced(BUILD_PACKAGE BUILD_PACKAGE_DEBIAN BUILD_PACKAGE_RPM BUILD_PACKAGE_BINARY BUILD_PACKAGE_DEV) | ||
endif (APPLE) | ||
endif(WIN32) | ||
|
||
set(BUILD_TESTING OFF) | ||
set(CPACK_GENERATOR "") | ||
set(CPACK_PACKAGE_NAME "qtdcm") | ||
set(CPACK_PACKAGE_VERSION "${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}") | ||
set(CPACK_SOURCE_GENERATOR "TBZ2;ZIP") | ||
set(CPACK_PACKAGE_CONTACT "[email protected]") | ||
set(CPACK_PACKAGE_DESCRIPTION_FILE "${QTDCM_SOURCE_DIR}/CMake/CPack.QtDCMLicense.txt") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QtDCM provide Qt widgets for reading DICOM CD and communicating with DICOM PACS") | ||
set(CPACK_RESOURCE_FILE_LICENSE "${QTDCM_SOURCE_DIR}/CMake/CPack.QtDCMLicense.txt") | ||
set(CPACK_RESOURCE_FILE_README "${QTDCM_SOURCE_DIR}/CMake/CPack.QtDCMDescription.txt") | ||
set(CPACK_RESOURCE_FILE_WELCOME "${QTDCM_SOURCE_DIR}/CMake/CPack.QtDCMWelcome.txt") | ||
set(CPACK_PACKAGE_FILE_NAME "qtm3d-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}") | ||
set(CPACK_SOURCE_PACKAGE_FILE_NAME "qtm3d-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}-src") | ||
if(NOT WIN32) | ||
set(CMAKE_INSTALL_PREFIX "/usr") | ||
if(BUILD_PACKAGE_DEBIAN) | ||
include(${QTDCM_SOURCE_DIR}/CMake/CPackDebConfig.cmake) | ||
endif(BUILD_PACKAGE_DEBIAN) | ||
if(BUILD_PACKAGE_RPM) | ||
include(${QTDCM_SOURCE_DIR}/CMake/CPackRpmConfig.cmake) | ||
endif(BUILD_PACKAGE_RPM) | ||
else(NOT WIN32) | ||
if (APPLE) | ||
set(CPACK_GENERATOR PACKAGEMAKER) | ||
else (APPLE) | ||
include(${QTDCM_SOURCE_DIR}/CMake/CPackNsisConfig.cmake) | ||
endif (APPLE) | ||
endif(NOT WIN32) | ||
include(CPack) | ||
endif(BUILD_PACKAGE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(BUILD_SHARED_LIBS CACHE FORCE "Build QtDCM with shared libraries." ON) | ||
set(CPACK_GENERATOR ${CPACK_GENERATOR};DEB) | ||
set(CPACK_DEB "ON") | ||
if (BUILD_PACKAGE_BINARY) | ||
option(BUILD_PACKAGE_DEV "Package development distribution of QtDCM" OFF) | ||
set(CPACK_PACKAGE_NAME "qtdcm") | ||
set(CPACK_DEB_PACKAGE_DESCRIPTION "") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libqt4-gui (>=4.3)") | ||
else (BUILD_PACKAGE_BINARY) | ||
option(BUILD_PACKAGE_BINARY "Package binary distribution of QtDCM" OFF) | ||
set(CPACK_PACKAGE_NAME "qtdcm-dev") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QtDCM provides widgets for DICOM support, This package is for development use") | ||
set(CPACK_PACKAGE_FILE_NAME "qtdcm-dev-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}") | ||
set(CPACK_DEBIAN_PACKAGE_DEPENDS "qtdcm (>=0.1), cmake (>=2.6)") | ||
endif(BUILD_PACKAGE_BINARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
set(CPACK_GENERATOR NSIS) | ||
set(CPACK_NSIS_CONTACT "[email protected]") | ||
set(CPACK_NSIS_URL_INFO_ABOUT "http://qtdcm.gforge.inria.fr") | ||
set(CPACK_NSIS_MODIFY_PATH "ON") | ||
# set(CPACK_PACKAGE_ICON ${VISTAL_SOURCE_DIR}/vistalLogo.bmp) | ||
if (BUILD_PACKAGE_BINARY) | ||
set(CPACK_PACKAGE_FILE_NAME "qtdcm-runtime-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}") | ||
endif (BUILD_PACKAGE_BINARY) | ||
if (BUILD_PACKAGE_SDK) | ||
set(CPACK_PACKAGE_FILE_NAME "qtdcm-sdk-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}") | ||
endif (BUILD_PACKAGE_SDK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(BUILD_SHARED_LIBS CACHE FORCE "Build QtDCM with shared libraries." OFF) | ||
set(CPACK_GENERATOR ${CPACK_GENERATOR};RPM) | ||
set(CPACK_RPM ON) | ||
if (BUILD_PACKAGE_BINARY) | ||
option(BUILD_PACKAGE_DEV "Package development distribution of QtDCM" OFF) | ||
set(CPACK_PACKAGE_NAME "qtdcm-dev") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QtDCM") | ||
set(CPACK_RPM_PACKAGE_DESCRIPTION "QtDCM") | ||
else (BUILD_PACKAGE_BINARY) | ||
option(BUILD_PACKAGE_BINARY "Package binary distribution of QtDCM" OFF) | ||
set(CPACK_PACKAGE_NAME "qtdcm-dev") | ||
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "QtDCM") | ||
set(CPACK_RPM_PACKAGE_DESCRIPTION "QtDCM") | ||
set(CPACK_PACKAGE_FILE_NAME "qtdcm-dev-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}.${QTDCM_VERSION_PATCH}") | ||
endif(BUILD_PACKAGE_BINARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# - Find an Vistal installation or build tree. | ||
|
||
# When Vistal is found, the VistalConfig.cmake file is sourced to setup the | ||
# location and configuration of Vistal. Please read this file, or | ||
# VistalConfig.cmake.in from the Vistal source tree for the full list of | ||
# definitions. Of particular interest is Vistal_USE_FILE, a CMake source file | ||
# that can be included to set the include directories, library directories, | ||
# and preprocessor macros. In addition to the variables read from | ||
# VistalConfig.cmake, this find module also defines | ||
# VISTAL_DIR - The directory containing VistalConfig.cmake. | ||
# This is either the root of the build tree | ||
# | ||
# VISTAL_FOUND - Whether Vistal was found. If this is true, | ||
# VISTAL_DIR is okay. | ||
# | ||
# USE_VISTAL_FILE - The full path to the UseVistal.cmake file. | ||
# This is provided for backward | ||
# compatability. Use VISTAL_USE_FILE | ||
# instead. | ||
|
||
FIND_PATH(VISTAL_DIR VistalConfig.cmake | ||
/usr/local/vistal | ||
DOC "Vistal directory" | ||
) | ||
|
||
SET(VISTAL_CONFIG_FILE ${VISTAL_DIR}/VistalConfig.cmake) | ||
# path is okay | ||
IF (EXISTS ${VISTAL_CONFIG_FILE}) | ||
|
||
SET(VISTAL_FOUND 1) | ||
INCLUDE (${VISTAL_CONFIG_FILE}) | ||
|
||
IF (EXISTS ${VISTAL_USE_FILE}) | ||
INCLUDE (${VISTAL_USE_FILE}) | ||
ENDIF (EXISTS ${VISTAL_USE_FILE}) | ||
|
||
ELSE (EXISTS ${VISTAL_CONFIG_FILE}) | ||
|
||
SET(VISTAL_FOUND 0) | ||
IF(VISTAL_FIND_REQUIRED) | ||
MESSAGE(FATAL_ERROR "Please set VISTAL_DIR to the correct value") | ||
ENDIF(VISTAL_FIND_REQUIRED) | ||
|
||
ENDIF (EXISTS ${VISTAL_CONFIG_FILE}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
## This file saves all the configuration of QTDCM compilation | ||
# This file is to be included from outside projects which uses QtM3d | ||
|
||
#path to the source of QTDCM | ||
SET(QTDCM_SOURCE_DIR "@QTDCM_SOURCE_DIR@/Code") | ||
|
||
#path to cmake files of Vistal | ||
SET(QTDCM_CMAKE_DIR "@QTDCM_CMAKE_DIR@") | ||
|
||
#path to binary dir of QTDCM | ||
SET(QTDCM_BINARY_DIR "@QTDCM_BIN_DIR@") | ||
|
||
# all include dirs pour QTDCM | ||
SET(QTDCM_INCLUDE_DIRS "@QTDCM_INCLUDE_DIRS@") | ||
|
||
# all library dirs pour QTDCM | ||
SET(QTDCM_LIBRARY_DIRS "@QTDCM_LIBRARY_DIRS@") | ||
|
||
# The C and C++ flags added by Vistal to the cmake-configured flags. | ||
#SET(QTDCM_REQUIRED_C_FLAGS "@QTDCM_REQUIRED_C_FLAGS@") | ||
#SET(QTDCM_REQUIRED_CXX_FLAGS "@QTDCM_REQUIRED_CXX_FLAGS@") | ||
#SET(QTDCM_REQUIRED_LINK_FLAGS "@QTDCM_REQUIRED_LINK_FLAGS@") | ||
SET(QTDCM_CMAKE_MODULE_PATH "@QTDCM_CMAKE_MODULE_PATH@") | ||
|
||
# The Vistal version number | ||
SET(QTDCM_VERSION_MAJOR "@QTDCM_VERSION_MAJOR@") | ||
SET(QTDCM_VERSION_MINOR "@QTDCM_VERSION_MINOR@") | ||
SET(QTDCM_VERSION_PATCH "@QTDCM_VERSION_PATCH@") | ||
|
||
# The location of the UseVistal.cmake file. | ||
SET(QTDCM_USE_FILE "@QTDCM_USE_FILE@") | ||
|
||
# The build settings file. | ||
SET(QTDCM_BUILD_SETTINGS_FILE "@QTDCM_BUILD_SETTINGS_FILE@") | ||
|
||
# The library depends file. | ||
SET(QTDCM_LIBRARY_DEPENDS_FILE "@QTDCM_LIBRARY_DEPENDS_FILE@") | ||
|
||
# Whether Vistal was built with shared libraries. | ||
SET(QTDCM_BUILD_SHARED "@BUILD_SHARED_LIBS@") | ||
|
||
# all QTDCM libs | ||
SET(QTDCM_LIBS "@QTDCM_LIBS@") | ||
|
||
SET(USE_VISTAL "@USE_VISTAL@") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
set(QTDCM_BINARY_INSTALL_DIR "${QTDCM_BINARY_DIR}/install") | ||
make_directory(${QTDCM_BINARY_INSTALL_DIR}) | ||
|
||
#Installing cmake files | ||
if ( NOT BUILD_PACKAGE OR BUILD_PACKAGE_DEV OR BUILD_PACKAGE_SDK) | ||
set(QTDCM_CMAKE_FILES | ||
${QTDCM_BINARY_INSTALL_DIR}/QtDCMConfig.cmake | ||
${QTDCM_BINARY_INSTALL_DIR}/UseQtDCM.cmake | ||
${QTDCM_BINARY_INSTALL_DIR}/QtDCMBuildSettings.cmake | ||
${QTDCM_BINARY_INSTALL_DIR}/QtDCMLibraryDepends.cmake | ||
) | ||
install_files(${INSTALL_CMAKE} FILES ${QTDCM_CMAKE_FILES}) | ||
endif( NOT BUILD_PACKAGE OR BUILD_PACKAGE_DEV OR BUILD_PACKAGE_SDK ) | ||
|
||
# Installing includes files | ||
if ( NOT BUILD_PACKAGE OR BUILD_PACKAGE_DEV OR BUILD_PACKAGE_SDK ) | ||
set(QTDCM_INCLUDE_FILES) | ||
foreach (inc ${QTDCM_INCLUDE_DIRS}) | ||
file(GLOB QTDCM_INCLUDE_FILES_TMP "${inc}/*.h") | ||
file(GLOB QTDCM_INCLUDE_FILES_TMP2 "${inc}/*.txx") | ||
set(QTDCM_INCLUDE_FILES | ||
${QTDCM_INCLUDE_FILES_TMP} | ||
${QTDCM_INCLUDE_FILES_TMP2} | ||
${QTDCM_INCLUDE_FILES} | ||
) | ||
endforeach (inc) | ||
install_files(${INSTALL_INC} FILES ${QTDCM_INCLUDE_FILES}) | ||
endif( NOT BUILD_PACKAGE OR BUILD_PACKAGE_DEV OR BUILD_PACKAGE_SDK) | ||
|
||
#Config file for installation | ||
set(QTDCM_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}) | ||
set(QTDCM_CMAKE_DIR "${CMAKE_INSTALL_PREFIX}${INSTALL_CMAKE}") | ||
set(QTDCM_BIN_DIR "${CMAKE_INSTALL_PREFIX}${INSTALL_BIN}") | ||
set(QTDCM_INCLUDE_DIRS "${CMAKE_INSTALL_PREFIX}${INSTALL_INC}") | ||
set(QTDCM_CMAKE_MODULE_PATH "${CMAKE_INSTALL_PREFIX}${INSTALL_CMAKE}") | ||
if (WIN32 AND BUILD_SHARED_LIBS) | ||
set(QTDCM_LIBRARY_DIRS "${CMAKE_INSTALL_PREFIX}${INSTALL_BIN}") | ||
else(WIN32 AND BUILD_SHARED_LIBS) | ||
set(QTDCM_LIBRARY_DIRS "${CMAKE_INSTALL_PREFIX}${INSTALL_LIB}") | ||
endif(WIN32 AND BUILD_SHARED_LIBS) | ||
|
||
|
||
SET(QTDCM_USE_FILE ${QTDCM_CMAKE_DIR}UseQtDCM.cmake) | ||
SET(QTDCM_LIBRARY_DEPENDS_FILE ${QTDCM_CMAKE_DIR}QtDCMLibraryDepends.cmake) | ||
SET(QTDCM_BUILD_SETTINGS_FILE ${QTDCM_CMAKE_DIR}QtDCMBuildSettings.cmake) | ||
|
||
#Generate ViSTAL cmake file for external projects | ||
cmake_export_build_settings(${QTDCM_BINARY_INSTALL_DIR}/QtDCMBuildSettings.cmake) | ||
export_library_dependencies(${QTDCM_BINARY_INSTALL_DIR}/QtDCMLibraryDepends.cmake) | ||
configure_file(${QTDCM_SOURCE_DIR}/CMake/QtDCMConfig.cmake.in ${QTDCM_BINARY_INSTALL_DIR}/QtDCMConfig.cmake) | ||
configure_file(${QTDCM_SOURCE_DIR}/CMake/UseQtDCM.cmake.in ${QTDCM_BINARY_INSTALL_DIR}/UseQtDCM.cmake) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SETTING installation directories | ||
SET (INSTALL_CMAKE /lib/QtDCM-${QTDCM_VERSION_MAJOR}.${QTDCM_VERSION_MINOR}/) | ||
SET (INSTALL_BIN /bin/) | ||
SET (INSTALL_LIB /lib/) | ||
SET (INSTALL_INC /include/qtdcm) | ||
SET (INSTALL_DOC /doc/) | ||
SET (INSTALL_MAN /man/) | ||
SET (INSTALL_SHARE /share/) | ||
|
||
## SETTING THE INCLUDE DIRS | ||
SET (QTDCM_INCLUDE_DIRS | ||
## Modules include dirs | ||
${QTDCM_SOURCE_DIR}/Code | ||
) | ||
|
||
## SETTING QTDCM LIBRARY DIRS | ||
SET (QTDCM_LIBRARY_DIRS | ||
${LIBRARY_OUTPUT_PATH} | ||
) | ||
|
||
include_directories(${QTDCM_INCLUDE_DIRS}) | ||
link_directories(${QTDCM_LIBRARY_DIRS}) | ||
|
||
## SETTING QTDCM LIBS | ||
SET(QTDCM_LIBS | ||
qtdcm | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# | ||
# This file sets up include directories, link directories, and | ||
# compiler settings for a project to use Vistal. It should not be | ||
# included directly, but rather through the QTDCM_USE_FILE setting | ||
# obtained from QtDCMConfig.cmake. | ||
# | ||
|
||
IF(QTDCM_BUILD_SETTINGS_FILE) | ||
INCLUDE("${CMAKE_ROOT}/Modules/CMakeImportBuildSettings.cmake") | ||
CMAKE_IMPORT_BUILD_SETTINGS(${QTDCM_BUILD_SETTINGS_FILE}) | ||
ENDIF(QTDCM_BUILD_SETTINGS_FILE) | ||
|
||
# Add include directories needed to use Vistal. | ||
INCLUDE_DIRECTORIES(${QTDCM_INCLUDE_DIRS}) | ||
|
||
# Add link directories needed to use Vistal. | ||
LINK_DIRECTORIES(${QTDCM_LIBRARY_DIRS}) | ||
SET(CMAKE_MODULE_PATH "${QTDCM_CMAKE_MODULE_PATH}") | ||
|
||
find_package( Qt4 REQUIRED ) | ||
if(QT4_FOUND) | ||
include(${QT_USE_FILE}) | ||
endif(QT4_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
cmake_minimum_required(VERSION 2.6) | ||
|
||
project(QTDCM) | ||
|
||
set(QTDCM_VERSION_MAJOR "0") | ||
set(QTDCM_VERSION_MINOR "1") | ||
set(QTDCM_VERSION_PATCH "0") | ||
|
||
add_definitions(-g -Wno-deprecated) | ||
|
||
option(BUILD_SHARED_LIBS "Build QtDcm with shared libraries." OFF) | ||
option(BUILD_DOCUMENTATION "Build QtDcm Documentation" OFF) | ||
option(BUILD_PACKAGE "Configure QtDcm packaging" OFF) | ||
|
||
if (BUILD_PACKAGE) | ||
include (${QTDCM_SOURCE_DIR}/CMake/CPackConfig.cmake) | ||
endif(BUILD_PACKAGE) | ||
|
||
set(EXECUTABLE_OUTPUT_PATH "${QTDCM_BINARY_DIR}/bin") | ||
if (WIN32 AND BUILD_SHARED_LIBS) | ||
set(LIBRARY_OUTPUT_PATH "${QTDCM_BINARY_DIR}/bin") | ||
else (WIN32 AND BUILD_SHARED_LIBS) | ||
set(LIBRARY_OUTPUT_PATH "${QTDCM_BINARY_DIR}/lib") | ||
endif (WIN32 AND BUILD_SHARED_LIBS) | ||
mark_as_advanced(LIBRARY_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH) | ||
|
||
#Configure doxygen documentation | ||
if(BUILD_DOCUMENTATION) | ||
subdirs(Documentation/Doxygen) | ||
endif(BUILD_DOCUMENTATION) | ||
|
||
set (QTDCM_CMAKE_MODULE_PATH ${QTDCM_SOURCE_DIR}/CMake) | ||
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${QTDCM_CMAKE_MODULE_PATH}") | ||
|
||
include (${QTDCM_SOURCE_DIR}/CMake/QtDCMSettings.cmake) | ||
|
||
find_package( Qt4 REQUIRED ) | ||
if(QT4_FOUND) | ||
include(${QT_USE_FILE}) | ||
endif(QT4_FOUND) | ||
|
||
set(SAMPLE_SRCS | ||
${QTDCM_SOURCE_DIR}/Code/qtdcm.cpp | ||
) | ||
|
||
set(SAMPLE_HDRS | ||
${QTDCM_SOURCE_DIR}/Code/qtdcm.h | ||
) | ||
|
||
set(SAMPLE_UIS | ||
${QTDCM_SOURCE_DIR}/Code/qtdcm.ui | ||
) | ||
|
||
set(SAMPLE_MOC_HDRS ${SAMPLE_HDRS}) | ||
|
||
set(QTDCM_SRCS | ||
) | ||
|
||
qt4_wrap_ui( SAMPLE_UI_HDRS ${SAMPLE_UIS}) | ||
qt4_wrap_cpp( SAMPLE_MOC_SRCS ${SAMPLE_MOC_HDRS}) | ||
|
||
include_directories(${CMAKE_BINARY_DIR} ${QTDCM_SOURCE_DIR}/Code/ ${QTDCM_BINARY_DIR} ${ITK_INCLUDE_DIRS} ${VTK_INCLUDE_DIRS}) | ||
add_library( qtdcm ${QTDCM_SRCS} ${SAMPLE_SRCS} ${SAMPLE_MOC_SRCS} ${SAMPLE_UI_HDRS}) | ||
target_link_libraries( qtdcm ${QT_LIBRARIES}) | ||
|
||
|
||
# External inclusion stuff : | ||
set(QTDCM_USE_FILE ${QTDCM_BINARY_DIR}/UseQtDCM.cmake) | ||
set(QTDCM_LIBRARY_DEPENDS_FILE ${QTDCM_BINARY_DIR}/QtDCMLibraryDepends.cmake) | ||
set(QTDCM_BUILD_SETTINGS_FILE ${QTDCM_BINARY_DIR}/QtDCMBuildSettings.cmake) | ||
# Copy the UseQtDCM.cmake file to the binary tree for backward compatability. | ||
configure_file(${QTDCM_SOURCE_DIR}/CMake/UseQtDCM.cmake.in | ||
${QTDCM_BINARY_DIR}/UseQtDCM.cmake) | ||
configure_file(${QTDCM_SOURCE_DIR}/CMake/QtDCMConfig.cmake.in | ||
${QTDCM_BINARY_DIR}/QtDCMConfig.cmake) | ||
|
||
# Save the compiler settings so another project can import them. | ||
include(${CMAKE_ROOT}/Modules/CMakeExportBuildSettings.cmake) | ||
cmake_export_build_settings(${QTDCM_BINARY_DIR}/QtDCMBuildSettings.cmake) | ||
export_library_dependencies(${QTDCM_BINARY_DIR}/QtDCMLibraryDepends.cmake) | ||
|
||
# Create the QtDCMConfig.cmake file containing the QtDCM configuration used with make install and CPack. | ||
include (${QTDCM_SOURCE_DIR}/CMake/QtDCMGenerateInstall.cmake) | ||
if ( NOT BUILD_PACKAGE OR BUILD_PACKAGE_BINARY OR BUILD_PACKAGE_SDK) | ||
install_targets(${INSTALL_LIB} qtdcm) | ||
endif ( NOT BUILD_PACKAGE OR BUILD_PACKAGE_BINARY OR BUILD_PACKAGE_SDK) | ||
|
||
|
Oops, something went wrong.