cmake_minimum_required(VERSION 3.4) project(casesensitive Fortran) # path to src directory starting from the dir containing our CMakeLists.txt set(src_home ${CMAKE_CURRENT_LIST_DIR}) # get our source files file(GLOB all_sources ${src_home}/*.F*) message(STATUS "all_sources: ${all_sources}")