# settings we include in every CMake project

# dummy use of BOOTSTRAP_DIR to shut up a warning
If ("${BOOTSTRAP_DIR}")
EndIf()

If (NOT DEFINED PROJECT_NAME)
  Message("WARNING: You should define the project name before including Basics.txt")
EndIf()

# dance to get a correct list dir in a macro
get_filename_component(_Basics_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)

# pull in the various bits
include(${_Basics_LIST_DIR}/Helpers.txt)
include(${_Basics_LIST_DIR}/Platform.txt)
include(${_Basics_LIST_DIR}/CrossCompile.txt)

# let the user know what generator, platform, and tools we're using
message("CMake configuration:")
message(" Generator: ${CMAKE_GENERATOR}")
message(" Platform:  ${CMAKE_SYSTEM_NAME} on ${CMAKE_SYSTEM_PROCESSOR}")
message(" Compilers:")
If(NOT "${CMAKE_C_COMPILER}" STREQUAL "")
  message("      C: " ${CMAKE_C_COMPILER})
EndIf()
If(NOT "${CMAKE_CXX_COMPILER}" STREQUAL "")
  message("    C++: " ${CMAKE_CXX_COMPILER})
EndIf()
message("")
