DESTINATION ${BBTK_BBS_INSTALL_PATH}/${BBTK_PACKAGE_NAME}/appli
)
- 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 ${OUTPUT_FILE})
- set(command4 del bb${BBTK_PACKAGE_NAME}.dll)
-
- ADD_CUSTOM_COMMAND(
- OUTPUT ${DOC_OUTPUT}
- COMMAND
-# cd ${BBTK_BIN_PATH}/../bbs/ && ${BBTK_BBI} -n ${OUTPUT_FILE}
+ #
+ IF(WIN32)
+ 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 ${OUTPUT_FILE})
+ set(command4 del bb${BBTK_PACKAGE_NAME}.dll)
+
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${DOC_OUTPUT}
+ COMMAND
+ # cd ${BBTK_BIN_PATH}/../bbs/ && ${BBTK_BBI} -n ${OUTPUT_FILE}
${command1} && ${command2} && ${command3} && ${command4}
- DEPENDS bb${PACKAGE_NAME}
- )
+ DEPENDS bb${PACKAGE_NAME}
+ )
+ ELSE(WIN32)
+ ADD_CUSTOM_COMMAND(
+ OUTPUT ${DOC_OUTPUT}
+ COMMAND
+ cd ${BBTK_BIN_PATH} && ${BBTK_BBI} -n ${OUTPUT_FILE}
+ DEPENDS bb${PACKAGE_NAME}
+ )
+ ENDIF(WIN32)
ADD_CUSTOM_TARGET(bbdoc_${PACKAGE_NAME} ALL
DEPENDS ${DOC_OUTPUT}
)