CREA_PREVENT_IN_SOURCE_BUILD()
-
SET(USE_BOOST ON)
OPTION(CREA_BUILD_VTK "Build crea with vtk ?" OFF)
ENDIF(CREA_BUILD_WX)
CREA_FIND_AND_USE_LIBRARIES()
-
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR})
SET(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR})
SET(CREA_LIB_PATH ${CMAKE_CREA_LIB_PATH} )
ADD_SUBDIRECTORY(cmake)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(appli)
-
#-----------------------------------------------------------------------------
OPTION( BUILD_SAMPLES "Build samples ?" OFF)
IF(BUILD_SAMPLES)
# ${CMAKE_CURRENT_SOURCE_DIR}/NewProject/lib/template_lib/${PROJECT_NAME}System.h
# @ONLY IMMEDIATE
# )
-
+
CREA_MKDIR(${EXECUTABLE_OUTPUT_PATH}/share/creaNewProject)
CREA_CPDIR(${INPUT_PROJECT_DIR} ${EXECUTABLE_OUTPUT_PATH}/share/creaNewProject)
CREA_DEFINE( USE_QT )
# SET(QT_LIBRARIES
- # ${QT_LIBRARIES}
+ # ${QT_LIBRARIES}
# )
# MARK_AS_ADVANCED(Qt4_DIR)
ENDIF(QT_FOUND)
IF(USE_VTK)
IF(WIN32)
SET(GDCM_LIBRARIES
- ${GDCM_LIBRARIES}
+ ${GDCM_LIBRARIES}
vtkgdcm
#gdcm2vtk
)
ELSE(WIN32)
SET(GDCM_LIBRARIES
- ${GDCM_LIBRARIES}
+ ${GDCM_LIBRARIES}
vtkgdcm
)
ENDIF(WIN32)
ENDIF(USE_VTK)
ENDIF(USE_GDCM_VTK)
-
ENDIF(USE_GDCM2)
-
-
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
IF(USE_BOOST)
-message(STATUS "1")
IF(NOT Boost_FOUND)
FIND_PACKAGE(Boost COMPONENTS filesystem signals date_time regex REQUIRED)
IF(Boost_FOUND)
- message(STATUS "1 bis")
MESSAGE ( STATUS "=======================================")
MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS})
IF(WIN32)
- message("creamacro find and use lib = ${Boost_LIBRARIES}")
-
-
CREA_DEFINE( USE_BOOST )
SET(BOOST_LIBRARIES
MARK_AS_ADVANCED(Boost_LIBRARY_DIRS)
ELSE(Boost_FOUND)
- message(STATUS "2")
- MESSAGE( "boost C++ library not found - Set Boost_INCLUDE_DIR to the directory containing boost headers")
+ MESSAGE( STATUS "boost C++ library not found - Set Boost_INCLUDE_DIR to the directory containing boost headers")
ENDIF(Boost_FOUND)
ENDIF(NOT Boost_FOUND)
- message("${Boost_FOUND}")
ENDIF(USE_BOOST)