# Convenience function to be called from the main CMakeLists.txt
function(buildCPPProject)

  # tell CMake where to find all headers required by the sources.

  file(GLOB_RECURSE CPPProject_SOURCES
       ${PROJECT_SOURCE_DIR}/CoreFunctions/Application/*.cpp)
  message("CPPProject Sources: " ${CPPProject_SOURCES})

  # Library dependencies: headers
  include_directories(${PATH_TO_COPY_BOUNDEDTYPES_SOURCES})
  include_directories(${PROJECT_SOURCE_DIR}/CoreFunctions)

  # sources to be included in the build
  # add_subdirectory(${PATH_TO_COPY_BOUNDEDTYPES_SOURCES})
  add_subdirectory(${PROJECT_SOURCE_DIR}/CoreFunctions/Library)

  add_library(CPPProject "${CPPProject_SOURCES}")
  target_link_libraries(CPPProject Library BoundedTypes)
  set_target_properties(CPPProject PROPERTIES LINKER_LANGUAGE "CXX")

endfunction(buildCPPProject)
