COSC-3P93-Project/Step 2/CMakeLists.txt

15 lines
416 B
CMake
Raw Normal View History

2022-10-14 15:26:51 -04:00
cmake_minimum_required(VERSION 3.23)
project(Step_2)
set(CMAKE_CXX_STANDARD 20)
#Setup project source compilation
set(source_dir "${PROJECT_SOURCE_DIR}/src/")
file(GLOB_RECURSE source_files "${source_dir}/*.cpp")
file(GLOB_RECURSE source_c_files "${source_dir}/*.c")
#Setup project header files
include_directories(${PROJECT_SOURCE_DIR}/include)
add_executable(${PROJECT_NAME} ${source_files} ${source_c_files})