2 #----------------------------------------------------------------------------
3 # BINARY DIR MUST BE IN INCLUDE DIRS
4 # TO FIND .h OF AUTOMATICALLY GENERATED FILES (e.g. FROM XML)
5 INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR}/kernel/src )
6 # SOURCES DIR MUST ALSO BE IN INCLUDE DIRS FOR FILES COMPILED IN BINARY DIR
7 # WHICH NEED TO INCLUDE OTHER FILES OF THE PACKAGE
8 INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/kernel/src )
9 INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/kernel/src/ThirdParty )
10 #----------------------------------------------------------------------------
12 #----------------------------------------------------------------------------
13 # THE PACKAGES ARE CORE ONES
14 SET(BBTK_CORE_PACKAGE TRUE)
15 #----------------------------------------------------------------------------
17 #-----------------------------------------------------------------------------
20 SET (EXECUTABLE_OUTPUT_REL_PATH "")
21 SET (LIBRARY_OUTPUT_REL_PATH "")
23 SET (ADDITIONAL_DLL_PATH "C:/CreaTools/lib" CACHE PATH "Additional paths in which to look for dlls")
25 ELSE(WIN32) # OR APPLE)
26 SET (EXECUTABLE_OUTPUT_REL_PATH bin)
27 SET (LIBRARY_OUTPUT_REL_PATH bin)
28 ENDIF(WIN32) # OR APPLE)
30 SET (EXECUTABLE_OUTPUT_PATH
31 ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH})
32 SET (LIBRARY_OUTPUT_PATH
33 ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
34 #-----------------------------------------------------------------------------
39 #-----------------------------------------------------------------------------
40 # The var BBTK_BIN_PATH
41 # gives the system-dependent path to output binaries
42 # BBTK_BBI, BBTK_BBFY and BBTK_BBDOC
43 # point to the system-dependent applications
44 # (.exe on win / no extension on lin)
46 # On WIN32, these paths will only be right at *BUILD TIME* in VS6 or .net
47 # Cannot be used at cmake run time !
49 IF(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
50 SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH}/$(IntDir))
51 ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
52 SET(BBTK_BIN_PATH $(SolutionDir)/$(OutDir))
53 ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
54 SET(BBTK_LIB_PATH bin)
55 SET(BBTK_BBS2CPP ${BBTK_BIN_PATH}/bbs2cpp.exe)
56 SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc.exe)
57 SET(BBTK_BBI ${BBTK_BIN_PATH}/bbi.exe)
58 SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy.exe)
60 SET(BBTK_LIB_PATH lib)
61 # For Xcode : have to test the cmake generator !
63 # SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH}/Debug)
65 SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH})
67 SET(BBTK_BBI ${BBTK_BIN_PATH}/bbi)
68 SET(BBTK_BBS2CPP ${BBTK_BIN_PATH}/bbs2cpp)
69 SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc)
70 SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy)
72 SET(BBTK_PACKAGE_LIB_PATH ${BBTK_LIB_PATH})
75 MESSAGE(STATUS "===============================================")
76 MESSAGE(STATUS "Setting up base pathes:")
77 MESSAGE(STATUS "* BBTK_BIN_PATH =${BBTK_BIN_PATH}")
78 MESSAGE(STATUS "* BBTK_LIB_PATH =${BBTK_LIB_PATH}")
79 MESSAGE(STATUS "* BBTK_PACKAGE_LIB_PATH =${BBTK_PACKAGE_LIB_PATH}")
80 MESSAGE(STATUS "* BBTK_BBI =${BBTK_BBI}")
81 MESSAGE(STATUS "* BBTK_BBS2CPP =${BBTK_BBS2CPP}")
82 MESSAGE(STATUS "* BBTK_BBC =${BBTK_BBC}")
83 MESSAGE(STATUS "* BBTK_BBFY =${BBTK_BBFY}")
84 #-----------------------------------------------------------------------------
86 #-----------------------------------------------------------------------------
87 # The vars BBTK_DOC_REL_PATH and BBTK_BBS_REL_PATH
88 # store documentation and scripts **RELATIVE** paths
89 # from build tree root or install tree root
90 # (different on win/lin)
92 SET(BBTK_SHARE_REL_PATH "/")
93 SET(BBTK_DOC_REL_PATH doc)
94 SET(BBTK_BBS_REL_PATH bbs)
95 SET(BBTK_DATA_REL_PATH data)
97 SET(BBTK_SHARE_REL_PATH share/bbtk)
98 SET(BBTK_DOC_REL_PATH share/bbtk/doc)
99 SET(BBTK_BBS_REL_PATH share/bbtk/bbs)
100 SET(BBTK_DATA_REL_PATH share/bbtk/data)
103 MESSAGE(STATUS "* BBTK_SHARE_REL_PATH =${BBTK_SHARE_REL_PATH}")
104 MESSAGE(STATUS "* BBTK_DOC_REL_PATH =${BBTK_DOC_REL_PATH}")
105 MESSAGE(STATUS "* BBTK_BBS_REL_PATH =${BBTK_BBS_REL_PATH}")
106 MESSAGE(STATUS "* BBTK_DATA_REL_PATH =${BBTK_DATA_REL_PATH}")
107 MESSAGE(STATUS "===============================================")
109 #-----------------------------------------------------------------------------