Mercurial > public > maze-solver
diff CMakeLists.txt @ 1:edee16cfda92
algo working but inefficient
author | Dennis <denniscmartin@protonmail.com> |
---|---|
date | Sun, 16 Oct 2022 14:13:37 +0200 |
parents | 41a299d2b278 |
children | deeb54b231aa |
line wrap: on
line diff
--- a/CMakeLists.txt Fri Oct 14 17:11:49 2022 +0200 +++ b/CMakeLists.txt Sun Oct 16 14:13:37 2022 +0200 @@ -1,6 +1,12 @@ cmake_minimum_required(VERSION 3.23) project(maze_solver C) +set(LIBPNG_DIR /usr/local/Cellar/libpng/1.6.38) # Set LIBPNG_DIR var to library path +include_directories(${LIBPNG_DIR}/include) # Add include folder +link_directories(${LIBPNG_DIR}/lib) # Link lib folder + set(CMAKE_C_STANDARD 99) -add_executable(maze_solver main.c) +add_executable(maze_solver main.c algo.c algo.h) + +target_link_libraries(maze_solver png) # Link libraries