cmake_minimum_required(VERSION 3.30) project(c C) set(CMAKE_C_STANDARD 17) set(INCLUDE_DIRECTORIES ./) include_directories() add_executable(stack_test stack/stack.c stack/stack.h stack/stack_test.c cell/cell.c cell/cell.h) add_executable(maze-nolib leelib/leelib.c leelib/leelib.h stack/stack.c stack/stack.h lee-algorithm/lee-algorithm.c lee-algorithm/lee-algorithm.h cell/cell.c cell/cell.h robot/robot.c robot/robot.h robot/simple-simulator.c main.c robot/simulator-moves.c robot/challenges/challenge2.c robot/challenges/challenge3.c robot/challenges/challenges.h robot/challenges/challenge4.c) add_executable(maze-libsp leelib/leelib.c leelib/leelib.h stack/stack.c stack/stack.h lee-algorithm/lee-algorithm.c lee-algorithm/lee-algorithm.h cell/cell.c cell/cell.h robot/robot.c robot/robot.h communication/communication.c communication/communication.h communication/utils.c communication/utils.h main.c robot/controller-moves.c robot/remote.c robot/challenges/challenges.h robot/challenges/challenge2.c robot/challenges/challenge3.c robot/challenges/challenge4.c) target_link_libraries(maze-libsp serialport m) target_link_libraries(maze-nolib m) target_link_libraries(stack_test m)