mshackman/far/CMakeLists.txt

16 lines
419 B
Text
Raw Normal View History

cmake_minimum_required(VERSION 3.10.1)
project(far)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wextra")
#Bring the headers into the project
include_directories(include)
#Can manually add the sources using the set command as follows:
#set(SOURCES src/mainapp.cpp src/Student.cpp)
#However, the file(GLOB...) allows for wildcard additions:
file(GLOB SOURCES "src/*.cpp")
add_executable(far ${SOURCES})