Mercurial > public > maze-solver
annotate CMakeLists.txt @ 12:d1fc48c5de99
Update README.md
committer: GitHub <noreply@github.com>
author | Dennis <dennisconcepcionmartin@gmail.com> |
---|---|
date | Wed, 02 Aug 2023 08:11:29 +0100 |
parents | deeb54b231aa |
children | 7514f6678025 |
rev | line source |
---|---|
0 | 1 cmake_minimum_required(VERSION 3.23) |
2 project(maze_solver C) | |
3 | |
1
edee16cfda92
algo working but inefficient
Dennis <denniscmartin@protonmail.com>
parents:
0
diff
changeset
|
4 set(LIBPNG_DIR /usr/local/Cellar/libpng/1.6.38) # Set LIBPNG_DIR var to library path |
edee16cfda92
algo working but inefficient
Dennis <denniscmartin@protonmail.com>
parents:
0
diff
changeset
|
5 include_directories(${LIBPNG_DIR}/include) # Add include folder |
edee16cfda92
algo working but inefficient
Dennis <denniscmartin@protonmail.com>
parents:
0
diff
changeset
|
6 link_directories(${LIBPNG_DIR}/lib) # Link lib folder |
edee16cfda92
algo working but inefficient
Dennis <denniscmartin@protonmail.com>
parents:
0
diff
changeset
|
7 |
0 | 8 set(CMAKE_C_STANDARD 99) |
9 | |
8 | 10 add_executable(maze_solver src/main.c src/algos.c src/algos.h src/process.c src/process.h src/handlers.c src/handlers.h) |
1
edee16cfda92
algo working but inefficient
Dennis <denniscmartin@protonmail.com>
parents:
0
diff
changeset
|
11 |
edee16cfda92
algo working but inefficient
Dennis <denniscmartin@protonmail.com>
parents:
0
diff
changeset
|
12 target_link_libraries(maze_solver png) # Link libraries |