type root password
> bbtk-uninstall
+
+
*************
** WINDOWS **
*************
-TO DO
+
+1)
+INSTALL SOFA
+ (See enviremental variables VTK ITK GDCM WXWIN ..)
+
+2)
+Install from
+ http://www.creatis.insa-lyon.fr/~davila/bbtk/Software/
+ -basic-miktex-2.6.2742.exe
+ (You have to make update)
+ -tth_exe.zip (c:\Creatis\tth_exe)
+ http://www.creatis.insa-lyon.fr/~davila/bbtk/Software/new/
+ -graphviz-2.2.1.exe
+ -doxygen-1.5.3-setup.exe
+
+
+3)
+Set the global variables of windows
+ Start
+ -> Control Panel
+ -> System
+ -> Advance
+ -> Environment Variables
+Ex.
+
+CREATIS = c:\Creatis\
+
GET_FILENAME_COMPONENT(filename "${xmlfile}" NAME_WE)
-
SET(BBFY_CXX_OUT ${CMAKE_CURRENT_BINARY_DIR}/${filename}.cxx)
+ IF (WIN32)
+ set(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
+ STRING(REPLACE "__RR__" "\;" command0 ${command00} )
+ ELSEIF(WIN32)
+ set(command0 " " )
+ ENDIF(WIN32)
+
ADD_CUSTOM_COMMAND(
OUTPUT ${BBFY_CXX_OUT}
COMMAND
+ set ${command0} &&
${BBTK_BBFY} ${xmlfile} ${BBTK_PACKAGE_NAME} ${CMAKE_CURRENT_BINARY_DIR}/ -q
DEPENDS ${xmlfile}
${BBTK_BBFY_DEPENDENCY}
PROPERTIES GENERATED ON)
- IF(NOT ${BBTK_PACKAGE_NAME}_CXX_SOURCES MATCHES "${filename}")
- SET(${BBTK_PACKAGE_NAME}_CXX_SOURCES
+ # IF(NOT ${BBTK_PACKAGE_NAME}_CXX_SOURCES MATCHES "${filename}")
+ message ("EED Alert BBTKConfigurePackage_src " "IF NOT MATCHES" )
+ SET(${BBTK_PACKAGE_NAME}_CXX_SOURCES
${${BBTK_PACKAGE_NAME}_CXX_SOURCES}
${filename}
)
- ENDIF(NOT ${BBTK_PACKAGE_NAME}_CXX_SOURCES MATCHES "${filename}")
+# ENDIF(NOT ${BBTK_PACKAGE_NAME}_CXX_SOURCES MATCHES "${filename}")
INSTALL(
FILES ${CMAKE_CURRENT_BINARY_DIR}/${filename}.h
DESTINATION include/bb${BBTK_PACKAGE_NAME})
-
ENDFOREACH(xmlfile)
#----------------------------------------------------------------------------
#
IF(WIN32)
- FILE(TO_NATIVE_PATH ${BBTK_BIN_PATH}/bb${BBTK_PACKAGE_NAME}.dll pathCommand2 )
+
+ FIND_PATH(DOT_DIR dot.exe PATHS $ENV{PATH} )
+ # %DOT_DIR%
+ set(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__${DOT_DIR}__RR__%PATH% )
+ STRING(REPLACE "__RR__" "\;" command0 ${command00} )
+
+ FILE(TO_NATIVE_PATH ${BBTK_BIN_PATH}/bb${BBTK_PACKAGE_NAME}.dll pathCommand2 )
set(command1 cd "${BBTK_BIN_PATH}/../bbs/")
set(command2 copy ${pathCommand2} . )
set(command3 ${BBTK_BBI} -N -q ${OUTPUT_FILE})
OUTPUT ${DOC_OUTPUT}
COMMAND
# cd ${BBTK_BIN_PATH}/../bbs/ && ${BBTK_BBI} -n ${OUTPUT_FILE}
- ${command1} && ${command2} && ${command3} && ${command4}
+ set ${command0} && ${command1} && ${command2} && ${command3} && ${command4}
DEPENDS bb${PACKAGE_NAME}
)
ELSE(WIN32)
#-----------------------------------------------------------------------------
IF(USE_TTH)
- FIND_FILE(LATEX_tth_CONVERTER NAME tth tth.exe PATHS . c:/Creatis/tth_exe/ ~/Creatis/tth ~/Creatis/tth_linux)
+ FIND_FILE(LATEX_tth_CONVERTER NAME tth tth.exe PATHS . $ENV{CREATIS}/tth_exe/ ~/Creatis/tth ~/Creatis/tth_linux)
IF (NOT LATEX_tth_CONVERTER)
MESSAGE(FATAL_ERROR "TTH not found (LATEX_tth_CONVERTER). Required to build the HTML documentation from tex source")
ELSE (NOT LATEX_tth_CONVERTER)
${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
@ONLY
)
+
+ set(command00 Path=%WXWIN%/lib/vc_dll/__RR__%VTK_DIR%__RR__%ITK_DIR%/../../bin/__RR__%PATH% )
+ STRING(REPLACE "__RR__" "\;" command0 ${command00} )
+
ADD_CUSTOM_COMMAND(
OUTPUT ${INDEX_OUTPUT}
COMMAND
- cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
+ set ${command0} && cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -N -q ${CMAKE_CURRENT_BINARY_DIR}/make-index.bbs
DEPENDS ${BBTK_BBI_DEPENDENCY} ${BBTK_PACKAGES_DEPS}
)
ADD_CUSTOM_TARGET(bbdoc_index ALL