2018-06-04 22:26:48 +00:00
|
|
|
cmake_minimum_required(VERSION 3.9)
|
|
|
|
project(LO41 C)
|
|
|
|
|
|
|
|
set(CMAKE_C_STANDARD 11)
|
2018-06-09 22:05:42 +00:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wshadow -fpic")
|
2018-06-07 20:46:20 +00:00
|
|
|
|
2018-06-09 22:09:20 +00:00
|
|
|
if(CMAKE_COMPILER_IS_GNUCC)
|
2018-06-07 20:46:20 +00:00
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
|
|
|
|
endif()
|
2018-06-04 22:26:48 +00:00
|
|
|
|
2018-06-20 16:19:49 +00:00
|
|
|
add_executable(LO41 main.c List/List.h List/List.c Objects.h List/Element.c List/Element.h Objects.c Building/Building.c Building/Building.h Elevator/Elevator.c Elevator/Elevator.h SharedData/SharedData.c SharedData/SharedData.h Visitor/Visitor.c Visitor/Visitor.h Resident/Resident.c Resident/Resident.h Passenger/Passenger.h Passenger/Passenger.c)
|