#-----------------------------------------------------------------------------
# bbtk_config.xml for the build tree
-CONFIGURE_FILE(
- ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
- ${BBTK_BIN_PATH}/bbtk_config.xml
- @ONLY IMMEDIATE
- )
+#MESSAGE(ERROR "'${BBTK_BIN_PATH}'")
+IF(UNIX)
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
+ ${BBTK_BIN_PATH}/bbtk_config.xml
+ @ONLY IMMEDIATE
+ )
+ELSE(UNIX)
+ SET(BBTK_BIN_PATH_OUTPUT ${EXECUTABLE_OUTPUT_PATH}/Debug )
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
+ ${EXECUTABLE_OUTPUT_PATH}/Debug/bbtk_config.xml
+ @ONLY IMMEDIATE
+ )
+ SET(BBTK_BIN_PATH_OUTPUT ${EXECUTABLE_OUTPUT_PATH}/Release )
+ CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/bbtk_config_build.xml.in
+ ${EXECUTABLE_OUTPUT_PATH}/Release/bbtk_config.xml
+ @ONLY IMMEDIATE
+ )
+ENDIF(UNIX)
#-----------------------------------------------------------------------------
<bbs_path>.</bbs_path>
<bbs_path> @PROJECT_BINARY_DIR@/@BBTK_BBS_INSTALL_PATH@ </bbs_path>
- <package_path> @BBTK_BIN_PATH@ </package_path>
+ <package_path>@BBTK_BIN_PATH_OUTPUT@ </package_path>
<data_path> @BBTK_DATA_ROOT@ </data_path>
- <default_doc_tmp> . </default_doc_tmp>
+ <default_doc_tmp> @PROJECT_BINARY_DIR@/ </default_doc_tmp>
</config>