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 (EXECUTABLE_OUTPUT_REL_PATH bin)
24 SET (LIBRARY_OUTPUT_REL_PATH bin)
27 SET (EXECUTABLE_OUTPUT_PATH
28 ${PROJECT_BINARY_DIR}/${EXECUTABLE_OUTPUT_REL_PATH})
29 SET (LIBRARY_OUTPUT_PATH
30 ${PROJECT_BINARY_DIR}/${LIBRARY_OUTPUT_REL_PATH})
31 #-----------------------------------------------------------------------------
33 #-----------------------------------------------------------------------------
34 # The var BBTK_BIN_PATH
35 # gives the system-dependent path to output binaries
36 # BBTK_BBI, BBTK_BBFY and BBTK_BBDOC
37 # point to the system-dependent applications
38 # (.exe on win / no extension on lin)
40 # On WIN32, these paths will only be right at *BUILD TIME* in VS6 or .net
41 # Cannot be used at cmake run time !
43 IF(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
44 SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH}/$(IntDir))
45 ELSE(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
46 SET(BBTK_BIN_PATH $(SolutionDir)/$(OutDir))
47 ENDIF(CMAKE_GENERATOR STREQUAL "Visual Studio 6")
48 SET(BBTK_BBS2CPP ${BBTK_BIN_PATH}/bbs2cpp.exe)
49 SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc.exe)
50 SET(BBTK_BBI ${BBTK_BIN_PATH}/bbi.exe)
51 SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy.exe)
52 SET(BBTK_BBDOC ${BBTK_BIN_PATH}/bbdoc.exe)
54 SET(BBTK_BIN_PATH ${EXECUTABLE_OUTPUT_PATH})
55 SET(BBTK_BBI ${BBTK_BIN_PATH}/bbi)
56 SET(BBTK_BBS2CPP ${BBTK_BIN_PATH}/bbs2cpp)
57 SET(BBTK_BBC ${BBTK_BIN_PATH}/bbc)
58 SET(BBTK_BBFY ${BBTK_BIN_PATH}/bbfy)
59 SET(BBTK_BBDOC ${BBTK_BIN_PATH}/bbdoc)
62 #-----------------------------------------------------------------------------
64 #-----------------------------------------------------------------------------
65 SET(BBTK_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
66 #-----------------------------------------------------------------------------
68 #-----------------------------------------------------------------------------
69 # The vars BBTK_DOC_REL_PATH and BBTK_BBS_REL_PATH
70 # store documentation and scripts **RELATIVE** paths
71 # from build tree root or install tree root
72 # (different on win/lin)
74 SET(BBTK_SHARE_REL_PATH "/")
75 SET(BBTK_DOC_REL_PATH doc)
76 SET(BBTK_BBS_REL_PATH bbs)
77 SET(BBTK_DATA_REL_PATH data)
79 SET(BBTK_SHARE_REL_PATH share/bbtk)
80 SET(BBTK_DOC_REL_PATH share/bbtk/doc)
81 SET(BBTK_BBS_REL_PATH share/bbtk/bbs)
82 SET(BBTK_DATA_REL_PATH share/bbtk/data)
84 #-----------------------------------------------------------------------------