SET(${EXE_NAME}_SOURCES creaNewProject.cpp)
SET(${EXE_NAME}_HAS_GUI TRUE)
SET(${EXE_NAME}_CONSOLE FALSE)
-SET(${EXE_NAME}_LINK_LIBRARIES crea )
+SET(${EXE_NAME}_LINK_LIBRARIES crea)
CREA_ADD_EXECUTABLE( ${EXE_NAME} )
#============================================================================
#-----------------------------------------------------------------------------
IF(USE_QT4)
- IF(NOT QT_FOUND)
- FIND_PACKAGE(Qt4 REQUIRED)
+ IF(NOT QT_FOUND)
+
+ INCLUDE(${CREA_CMAKE_DIR}/CREAMacro_FindAndUseQt.cmake)
+
IF(QT_FOUND)
MESSAGE ( STATUS "=======================================")
MESSAGE ( STATUS "Looking for QT4... found")
MESSAGE ( STATUS "* Inc Dir = ${QT_INCLUDE_DIR}")
MESSAGE ( STATUS "* Version = ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}.${QT_VERSION_PATCH}")
INCLUDE(${QT_USE_FILE})
+
CREA_DEFINE( USE_QT )
# SET(QT_LIBRARIES
# ${QT_LIBRARIES}
#-----------------------------------------------------------------------------
IF(USE_TTH)
IF (NOT TTH_EXECUTABLE)
- FIND_FILE( TTH_EXECUTABLE NAME tth tth.exe PATHS . $ENV{CREATIS}/tth_exe/ ~/Creatis/tth ~/Creatis/tth_linux)
+ FIND_FILE( TTH_EXECUTABLE NAME tth tth.exe PATHS . $ENV{CREATIS}/tth_exe/ ~/Creatis/tth ~/Creatis/tth_linux $ENV{CREATIS}/tth/)
IF (NOT TTH_EXECUTABLE)
MESSAGE(FATAL_ERROR "TTH not found (LATEX_tth_CONVERTER). Required to build the HTML documentation from tex source")
ELSE (NOT TTH_EXECUTABLE)
CREA_DEFINE( USE_BOOST )
IF(WIN32)
- LINK_DIRECTORIES( ${Boost_INCLUDE_DIRS}/lib)
+ LINK_DIRECTORIES( ${Boost_INCLUDE_DIRS}/stage/lib)
#MESSAGE ("EED " ${Boost_LIBRARY_DIRS})
+ #libboost_signals-vc71-mt-1_37
+ #libboost_filesystem-vc71-mt-1_37
+ #boost_date_time-vc71-mt-1_37
SET(BOOST_LIBRARIES
- libboost_signals-vc71-mt-1_37
- libboost_filesystem-vc71-mt-1_37
- boost_date_time-vc71-mt-1_37
+ boost_signals-vc90-mt
+ boost_filesystem-vc90-mt
+ boost_date_time-vc90-mt
#what about boost_thread? JPR
)
ENDIF(WIN32)
IF(NOT WIN32)
IF(NOT APPLE)
- SET(BOOST_LIBRARIES
- boost_signals
- boost_filesystem
- boost_date_time
- boost_program_options
- boost_regex
- boost_thread
- )
+ SET(BOOST_LIBRARIES
+ boost_signals
+ boost_filesystem
+ boost_date_time
+ boost_program_options
+ boost_regex
+ boost_thread
+ )
ELSE(NOT APPLE)
- SET(BOOST_LIBRARIES
- boost_signals-mt
- boost_filesystem-mt
- boost_date_time-mt
- boost_system-mt
- boost_program_options-mt
- boost_regex-mt
- boost_thread-mt
- )
+ SET(BOOST_LIBRARIES
+ boost_signals-mt
+ boost_filesystem-mt
+ boost_date_time-mt
+ boost_system-mt
+ boost_program_options-mt
+ boost_regex-mt
+ boost_thread-mt
+ )
ENDIF(NOT APPLE)
ENDIF(NOT WIN32)
#wxWidgets build related stuff
# DO NOT FORCE DEBUG LIBS !!
- #SET(WXW_USE_DEBUG ON)
+ SET(WXW_USE_DEBUG ON)
SET(WXW_USE_UNICODE OFF)
SET(WXW_USE_SHARED ON)
SET(WXW_USE_UNIV OFF)
ADD_LIBRARY(crea ${CREA_BUILD_SHARED} ${SRCS})
-
TARGET_LINK_LIBRARIES(crea
${WXWIDGETS_LIBRARIES}
${VTK_LIBRARIES}
- ${BOOST_LIBRARIES}
+ ${BOOST_LIBRARIES}
)
+#
# ${GDCM_LIBRARIES}
# ${SQLITE_LIBRARIES})
Program: crea
Module: $RCSfile: creaSystem.h,v $
Language: C++
- Date: $Date: 2009/09/15 11:32:40 $
- Version: $Revision: 1.5 $
+ Date: $Date: 2009/09/17 11:47:46 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#if defined(_WIN32) && defined(CREA_BUILD_SHARED)
//#include "WWW.h"
#ifdef CREA_EXPORT_SYMBOLS
- #define CREA_EXPORT __declspec( dllexport )
+ #define CREA_EXPORT __declspec( dllexport )
#else
- #define CREA_EXPORT __declspec( dllimport )
+ #define CREA_EXPORT __declspec( dllimport )
#endif
#define CREA_CDECL __cdecl
#else
{
template <class T>
- vtkImageData* /*CREA_EXPORT*/ NewVtkImageDataFromRaw( T* data,
+
+ CREA_EXPORT vtkImageData* NewVtkImageDataFromRaw( T* data,
int nx,
int ny,
int nz,
{
template <class T>
- vtkImageData* /*CREA_EXPORT*/ NewVtkImageDataFromRaw( T* data,
+ CREA_EXPORT vtkImageData* NewVtkImageDataFromRaw( T* data,
int nx,
int ny,
int nz,