16 lines
419 B
Text
16 lines
419 B
Text
|
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})
|