IF(NOT ${BBTK_PACKAGE_NAME}_IN_DEPS)
SET(BBTK_PACKAGES_DEPS "${${BBTK_PACKAGE_NAME}_DEPS};${BBTK_PACKAGES_DEPS}"
CACHE INTERNAL "bbtk packages dependencies" FORCE)
-MESSAGE(STATUS "deps=${BBTK_PACKAGES_DEPS}")
+ # MESSAGE(STATUS "Packages=${BBTK_PACKAGES_DEPS}")
ENDIF(NOT ${BBTK_PACKAGE_NAME}_IN_DEPS)
#---------------------------------------------------------------------------
#-------------------------------------------------------------------------
#-----------------------------------------------------------------------
- # If package deps in global deps : remove them
+ # If package deps in global deps : reset global deps
IF(${BBTK_PACKAGE_NAME}_IN_DEPS)
- STRING(REPLACE "${${BBTK_PACKAGE_NAME}_DEPS};"
- "" TEMP
- ${BBTK_PACKAGES_DEPS})
-
- SET(BBTK_PACKAGES_DEPS ${TEMP}
- CACHE INTERNAL "bbtk packages dependencies" FORCE)
+ SET(BBTK_PACKAGES_DEPS "" CACHE INTERNAL
+ "bbtk packages dependencies" FORCE)
+# STRING(REPLACE "${${BBTK_PACKAGE_NAME}_DEPS};"
+# "" TEMP
+# ${BBTK_PACKAGES_DEPS})
+#
+# SET(BBTK_PACKAGES_DEPS ${TEMP}
+# CACHE INTERNAL "bbtk packages dependencies" FORCE)
ENDIF(${BBTK_PACKAGE_NAME}_IN_DEPS)
#-----------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+# BINARY DIR MUST BE IN INCLUDE DIRS
+# TO FIND .h OF AUTOMATICALLY GENERATED FILES (e.g. FROM XML)
+INCLUDE_DIRECTORIES( ${PROJECT_BINARY_DIR}/kernel/src )
+# SOURCES DIR MUST ALSO BE IN INCLUDE DIRS FOR FILES COMPILED IN BINARY DIR
+# WHICH NEED TO INCLUDE OTHER FILES OF THE PACKAGE
+INCLUDE_DIRECTORIES( ${PROJECT_SOURCE_DIR}/kernel/src )
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+# THE PACKAGES ARE CORE ONES
+SET(BBTK_CORE_PACKAGE TRUE)
+#----------------------------------------------------------------------------
+
+
#-----------------------------------------------------------------------------
# Path for binaries
SET (EXECUTABLE_OUTPUT_REL_PATH bin)
#-----------------------------------------------------------------------------
-
#-----------------------------------------------------------------------------
# The var BBTK_BIN_PATH
# gives the system-dependent path to output binaries