From c3e64de33749716f7247fffe351fcab8821d3f9c Mon Sep 17 00:00:00 2001 From: guigues Date: Mon, 12 Jan 2009 09:42:15 +0000 Subject: [PATCH] *** empty log message *** --- README.txt | 12 ++ windows/CREATOOLS_PACKAGING_INSTRUCTIONS.txt | 88 ++++++++++++++ windows/crea_ThirdParty_dlls/CMakeLists.txt | 47 ++++++++ windows/crea_ThirdParty_dlls/LICENSE.txt | 1 + windows/crea_ThirdParty_dlls/README.txt | 8 ++ .../install/CMakeLists.txt | 111 ++++++++++++++++++ 6 files changed, 267 insertions(+) create mode 100644 README.txt create mode 100644 windows/CREATOOLS_PACKAGING_INSTRUCTIONS.txt create mode 100644 windows/crea_ThirdParty_dlls/CMakeLists.txt create mode 100644 windows/crea_ThirdParty_dlls/LICENSE.txt create mode 100644 windows/crea_ThirdParty_dlls/README.txt create mode 100644 windows/crea_ThirdParty_dlls/install/CMakeLists.txt diff --git a/README.txt b/README.txt new file mode 100644 index 0000000..7732116 --- /dev/null +++ b/README.txt @@ -0,0 +1,12 @@ +Tools to manage the creaTools suite (build, test, submit to dashboard, package, ...) +==================================================================================== + +* ctest: +ctest scripts and instructions to perform automated build/testing and submission to creatis cdash dashboard +* windows: +windows installers of the suite and instructions to package the suite for windows. subdirs: + * creaThirdParty_dlls: + project which creates the creaThirdParty_dlls win installer (using cmake and NSIS) + * CreaTools_win32_installers: + batch installers of the suite + diff --git a/windows/CREATOOLS_PACKAGING_INSTRUCTIONS.txt b/windows/CREATOOLS_PACKAGING_INSTRUCTIONS.txt new file mode 100644 index 0000000..ee89ddd --- /dev/null +++ b/windows/CREATOOLS_PACKAGING_INSTRUCTIONS.txt @@ -0,0 +1,88 @@ +* HOW TO PACKAGE THE FULL CREATOOLS SUITE +========================================= +LG 09/01/09 +Instructions written for CreaTools 2.0 packaging +(Between parenthesis are the versions used for version 2.0) + +Requisites +---------- +* CMake (2.6 patch 2) +* ActiveTcl (8.5.4.0) +* NSIS (Nullsoft Install System) + + +Preliminaries +------------- + +* Uninstall previous crea_ThirdParty_dlls / crea_ThirdParty_Libraries +* Create a packaging directory. It will be called ROOT below. +* Create a src subdir + +Create crea_ThirdParty_Libraries-2.0.0.rar +------------------------------------------ + +1) Download in ROOT/src the latest sources of: +* itk (3.10.1) +* vtk (5.2.1) +* KWWidgets (nightly 09/01/2009) +* wxWidgets (wxMSW-2.8.9-Setup.exe) + +2) +* Build and PACKAGE itk with options: +(i.e. build the ALL_BUILD and PACKAGE projects) +BUILD_EXAMPLES OFF +BUILD_SHARED_LIBS ON +BUILD_TESTING OFF + +* Copy the installer (ITK-3.10.1-win32.exe) from build tree to ROOT/crea_ThirdParty_Libraries-2.0.0 +* Execute it + +3) +* Build and PACKAGE vtk with options: +(i.e. build the ALL_BUILD and PACKAGE projects) +BUILD_EXAMPLES OFF +BUILD_SHARED_LIBS ON +BUILD_TESTING OFF +VTK_WRAP_TCL ON + +* Copy the installer (VTK-5.2.1-win32.exe) from build tree to ROOT/crea_ThirdParty_Libraries-2.0.0 +* Execute it + +4) +* Build and **INSTALL** kwwidgets with options: +(i.e. build the ALL_BUILD and INSTALL projects) +CMAKE_INSTALL_PREFIX ROOT/crea_ThirdParty_Libraries-2.0.0/KWWidgets-090109 +VTK_DIR the/install/dir/of/the/vtk/just/built/and/installed + + +5) +* Build wxWidgets in 'DLL Debug' configuration: +* Execute the sources installer (install in ROOT/crea_ThirdParty_Libraries-2.0.0/) +* Open the project ROOT/crea_ThirdParty_Libraries-2.0.0/wxWidgets-X.X.X/build/msw/wx_dll/dsw +* Set configuration to 'DLL Debug' +* Build all +From wx install instructions: + 'Pleae notice that it's normal that dbgrid project + doesn't build if wxUSE_ODBC is set to 0 (default).' +* in ROOT/crea_ThirdParty_Libraries-2.0.0/wxWidgets-X.X.X : + * Delete all folders except 'include' and 'lib' + * Delete all files except 'wx-config.in' + +6) +* Build and **INSTALL** gdcm with options +CMAKE_INSTALL_PREFIX ROOT/crea_ThirdParty_Libraries-2.0.0/gdcm-090109 +BUILD_EXAMPLES OFF +BUILD_EXAMPLES OFF +GDCM_NAME_SPACE gdcm_1_3 +GDCM_VTK ON + +7) +* Update the README.txt ! +* Create the archive ROOT/crea_ThirdParty_Libraries-2.0.0.rar +* copy it to tux in / + +8) +* Create crea_ThirdParty_dlls-2.0.0 installer +* checkout crea_ThirdParty_dlls from creatis cvs + + diff --git a/windows/crea_ThirdParty_dlls/CMakeLists.txt b/windows/crea_ThirdParty_dlls/CMakeLists.txt new file mode 100644 index 0000000..58f6651 --- /dev/null +++ b/windows/crea_ThirdParty_dlls/CMakeLists.txt @@ -0,0 +1,47 @@ +CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +PROJECT(crea_ThirdParty_dlls) + +SET(PROJECT_MAJOR_VERSION 0) +SET(PROJECT_MINOR_VERSION 2) +SET(PROJECT_BUILD_VERSION 0) + +SET(CREA_VERBOSE_CMAKE TRUE) + +FIND_PACKAGE(crea REQUIRED) +IF (crea_FOUND) + INCLUDE(${crea_USE_FILE}) +ENDIF(crea_FOUND) + +SET(USE_GDCM ON) +SET(USE_GDCM_VTK ON) +SET(USE_WXWIDGETS ON) +SET(USE_KWWIDGETS ON) +SET(USE_VTK ON) +SET(USE_ITK ON) +#SET(USE_BOOST ON) + +CREA_FIND_AND_USE_LIBRARIES() + +SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}) +SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}) +MARK_AS_ADVANCED( + CMAKE_BACKWARDS_COMPATIBILITY + EXECUTABLE_OUTPUT_PATH + LIBRARY_OUTPUT_PATH + ) + +# Includes +INCLUDE_DIRECTORIES( +# ${PROJECT_BINARY_DIR} + ${PROJECT_SOURCE_DIR}/src + ) + +IF(WIN32) +INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) +LINK_DIRECTORIES(${PROJECT_SOURCE_DIR}/win32) +ENDIF(WIN32) + +#SUBDIRS(src) +#SUBDIRS(appli) +#SUBDIRS(bbtk) +SUBDIRS(install) diff --git a/windows/crea_ThirdParty_dlls/LICENSE.txt b/windows/crea_ThirdParty_dlls/LICENSE.txt new file mode 100644 index 0000000..276a7e7 --- /dev/null +++ b/windows/crea_ThirdParty_dlls/LICENSE.txt @@ -0,0 +1 @@ +Please refer to each software license. \ No newline at end of file diff --git a/windows/crea_ThirdParty_dlls/README.txt b/windows/crea_ThirdParty_dlls/README.txt new file mode 100644 index 0000000..dc3904d --- /dev/null +++ b/windows/crea_ThirdParty_dlls/README.txt @@ -0,0 +1,8 @@ +crea_ThidParty_dlls 0.2.0 +(c) CREATIS-LRMN 2008-2009 +Installs all third party libraries dlls needed for the creaTools suite to work : +* wxWidgets +* itk 3.10.1 +* vtk 5.2.1 (tcl wrapped) +* KWWidgets nightly 09/01/2009 (built with VTK) +* gdcm (built with VTK) diff --git a/windows/crea_ThirdParty_dlls/install/CMakeLists.txt b/windows/crea_ThirdParty_dlls/install/CMakeLists.txt new file mode 100644 index 0000000..60ed93b --- /dev/null +++ b/windows/crea_ThirdParty_dlls/install/CMakeLists.txt @@ -0,0 +1,111 @@ + +#----------------------------------------------------------------------------- +# CPACK+NSIS PACKAGING +#----------------------------------------------------------------------------- + +#---Documentation------------- +#http://www.cmake.org/Wiki/CMake:Packaging_With_CPack +#http://www.cmake.org/Wiki/CMake:CPackConfiguration +#http://www.cmake.org/Wiki/CMake:Install_Commands + + +INCLUDE(InstallRequiredSystemLibraries) + +SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "crea_ThirdParty_dlls - CREATIS-LRMN") +SET(CPACK_PACKAGE_VENDOR "CREATIS-LRMN") +SET(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.txt") +SET(CPACK_RESOURCE_FILE_LICENSE "${PROJECT_SOURCE_DIR}/LICENSE.txt") +SET(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_MAJOR_VERSION}) +SET(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_MINOR_VERSION}) +SET(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_BUILD_VERSION}) + + + + + SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\crea_ThirdParty_dlls-${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}") + IF(WIN32) + SET(CMAKE_INSTALL_PREFIX C:/CreaTools/crea_ThirdParty_dlls) + ENDIF(WIN32) + + + +IF(WIN32 AND NOT UNIX) + # There is a bug in NSI that does not handle full unix paths properly. Make + # sure there is at least one set of four (4) backlasshes. +#EED SET(CPACK_PACKAGE_ICON "${CMAKE_CURRENT_SOURCE_DIR}/kernel/install/gnome/bbi-icon2.bmp") +# SET(CPACK_NSIS_INSTALLED_ICON_NAME "bin/BBI_EXE.exe") + SET(CPACK_NSIS_DISPLAY_NAME "crea_ThirdParty_dlls") + SET(CPACK_NSIS_HELP_LINK "http://www.creatis.insa-lyon.fr/creatools/crea_ThirdParty_dlls") + SET(CPACK_NSIS_URL_INFO_ABOUT "http://www.creatis.insa-lyon.fr/creatools/crea_ThirdParty_dlls") + SET(CPACK_NSIS_CONTACT "info-dev@creatis.insa-lyon.fr") + SET(CPACK_NSIS_MODIFY_PATH ON) +ELSE(WIN32 AND NOT UNIX) +# SET(CPACK_STRIP_FILES "bin/bbi") + SET(CPACK_SOURCE_STRIP_FILES "") +ENDIF(WIN32 AND NOT UNIX) +#SET(CPACK_PACKAGE_EXECUTABLES "TestWxGimmickDialog" "Gimmick!") + + +INCLUDE(CPack) + + +# Aditional INSTALL for CPACK mecanism. +IF (WIN32) + +## INSTALL( FILES ${PROJECT_SOURCE_DIR}/win32/sqlite3.dll DESTINATION bin ) + STRING(REGEX REPLACE "\\\\" "/" WINDIR "$ENV{WINDIR}") + INSTALL( FILES ${WINDIR}/system32/msvcp71d.dll DESTINATION bin/ ) + INSTALL( FILES ${WINDIR}/system32/msvcr71d.dll DESTINATION bin/ ) + + IF(USE_VTK) + SET(VTK_BIN_DIR ${VTK_DIR}/bin/Debug ) + + FILE(GLOB LST_FILE_VTKDLL "${VTK_BIN_DIR}/*.dll") + FOREACH( iLST ${LST_FILE_VTKDLL} ) + INSTALL( + FILES ${iLST} + DESTINATION bin/ + ) + ENDFOREACH(iLST) + ENDIF(USE_VTK) + + IF(USE_ITK) + INSTALL( FILES ${ITK_DIR}/bin/Debug/ITKCommon.dll DESTINATION bin/ ) + ENDIF(USE_ITK) + + IF(USE_WXWIDGETS) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_xrc_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_richtext_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_qa_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_media_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_html_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_gl_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_core_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_aui_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxmsw28d_adv_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_xml_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_odbc_vc_custom.dll DESTINATION bin/ ) + INSTALL( FILES ${WXWIDGETS_ROOT_DIR}/lib/vc_dll/wxbase28d_net_vc_custom.dll DESTINATION bin/ ) + ENDIF(USE_WXWIDGETS) + + + IF(USE_GDCM) + INSTALL( FILES ${GDCM_DIR}/bin/Debug/gdcm.dll DESTINATION bin/ ) + INSTALL( FILES ${GDCM_DIR}/bin/Debug/gdcmjpeg8.dll DESTINATION bin/ ) + INSTALL( FILES ${GDCM_DIR}/bin/Debug/gdcmjpeg12.dll DESTINATION bin/ ) + INSTALL( FILES ${GDCM_DIR}/bin/Debug/gdcmjpeg16.dll DESTINATION bin/ ) + INSTALL( FILES ${GDCM_DIR}/bin/Debug/gdcmopenjpeg.dll DESTINATION bin/ ) + INSTALL( FILES ${GDCM_DIR}/bin/Debug/vtkgdcm.dll DESTINATION bin/ ) + ENDIF(USE_GDCM) + + + IF(USE_KWWIDGETS) + INSTALL( FILES ${KWWidgets_DIR}/bin/Debug/KWWidgets.dll DESTINATION bin/ ) + ENDIF(USE_KWWIDGETS) + + +ENDIF (WIN32) + + + -- 2.47.1