cmake_minimum_required(VERSION 3.20)
project(projet_reseaux_trophiques_equipe_3b C)
set(CMAKE_C_STANDARD 11)
add_executable(projet_reseaux_trophiques_equipe_3b
main.c
Algo_et_parcours_graphe/infoGraphe.c
Algo_et_parcours_graphe/infoGraphe.h
Bibliotheque_externe/cJSON.c
Bibliotheque_externe/cJSON.h
Convertion_jsonTopng/convertion_MMD_PNG.c
Convertion_jsonTopng/convertion_MMD_PNG.h
Simulation/ecrire_json.c
Convertion_jsonTopng/convertion_JSON_MMD.c
Convertion_jsonTopng/convertion_JSON_MMD.h
Affichage/Affichage.c
Affichage/Affichage.h
Affichage/Interface_Graphique.c
Simulation/simulation1.c
Simulation/simulation1.h
structure.h
)
target_include_directories(projet_reseaux_trophiques_equipe_3b PRIVATE ${CMAKE_SOURCE_DIR}/Bibliotheque_externe)
target_include_directories(projet_reseaux_trophiques_equipe_3b PRIVATE ${CMAKE_SOURCE_DIR}/Simulation)
target_include_directories(projet_reseaux_trophiques_equipe_3b PRIVATE ${CMAKE_SOURCE_DIR}/Algo_et_parcours_graphe)
target_include_directories(projet_reseaux_trophiques_equipe_3b PRIVATE ${CMAKE_SOURCE_DIR}/Convertion_jsonTopng)
target_include_directories(projet_reseaux_trophiques_equipe_3b PRIVATE ${CMAKE_SOURCE_DIR}/Affichage)
IF(WIN32)
target_link_libraries(projet_reseaux_trophiques_equipe_3b -lmingw32 -lallegro-5.0.10-monolith-md-debug)
ELSE()
INCLUDE_DIRECTORIES(/opt/homebrew/Cellar/allegro/5.2.9.1/include)
LINK_DIRECTORIES(/opt/homebrew/Cellar/allegro/5.2.9.1/lib)
file(GLOB LIBRARIES "/opt/homebrew/Cellar/allegro/5.2.9.1/lib/*.dylib")
message("LIBRARIES = ${LIBRARIES}")
TARGET_LINK_LIBRARIES(projet_reseaux_trophiques_equipe_3b ${LIBRARIES})
ENDIF(WIN32)