# This CMakeLists file will add the folders "GUI", "CBICA_Toolkit" and "Applications" to the compilation

# It will also assess the number of Applications present (using "file(GLOB_RECURSE HDRS *.h)")

# Add a variable to the local cache which denotes the number of applications, so that it can be accessed by the c++ source code and add the requisite number of menu items


ADD_SUBDIRECTORY(${PROJECT_SOURCE_DIR}/src/applications)

ADD_SUBDIRECTORY(${PROJECT_SOURCE_DIR}/src/cbica_toolkit)

ADD_SUBDIRECTORY(${PROJECT_SOURCE_DIR}/src/gui)

SET( EXE_SOURCES
  "${CMAKE_CURRENT_SOURCE_DIR}/CBICA_Viewer.h"
  "${CMAKE_CURRENT_SOURCE_DIR}/CBICA_Viewer.cpp"
  #"${CMAKE_CURRENT_SOURCE_DIR}/CBICAMedicalImageAnalysisTool.h"
  #"${CMAKE_CURRENT_SOURCE_DIR}/CBICAMedicalImageAnalysisTool.cpp"
  CACHE STRING "Executable sources"
)