1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2024-11-22 16:53:21 +00:00

Normalement ça c'est fonctionnel, mais du coup ça ne l'est pas sur mac

This commit is contained in:
Antoine Bartuccio 2018-06-07 22:41:47 +02:00
parent 4fa9f48220
commit 8012e005da
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -2,10 +2,6 @@ cmake_minimum_required(VERSION 3.9)
project(LO41 C) project(LO41 C)
set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD 11)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -Wshadow") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread -Wall -Werror -Wextra -Wshadow")
if(LINUX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lpthread")
endif()
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 CommunicationBox/CommunicationBox.c CommunicationBox/CommunicationBox.h SharedData/SharedData.c SharedData/SharedData.h Visitor/Visitor.c Visitor/Visitor.h Resident/Resident.c Resident/Resident.h) 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 CommunicationBox/CommunicationBox.c CommunicationBox/CommunicationBox.h SharedData/SharedData.c SharedData/SharedData.h Visitor/Visitor.c Visitor/Visitor.h Resident/Resident.c Resident/Resident.h)