Mercurial > public > algo-animator
annotate CMakeLists.txt @ 50:62b7c457510d
Update main.c
Suppressed the warning for macOS users
committer: GitHub <noreply@github.com>
author | Pietro Molendys <89810437+Pedritos22@users.noreply.github.com> |
---|---|
date | Wed, 02 Apr 2025 00:53:34 +0200 |
parents | f60144ebce23 |
children |
rev | line source |
---|---|
27 | 1 cmake_minimum_required(VERSION 3.22) |
2 project(algo_animator) | |
3 | |
47 | 4 # Set the path to the FreeType library |
5 set(FREETYPE_DIR /usr/local/Cellar/freetype/2.13.2) | |
6 | |
7 # Find OpenGL package | |
8 find_package(OpenGL REQUIRED) | |
27 | 9 |
47 | 10 # Include directories for headers |
11 include_directories(${FREETYPE_DIR}/include/freetype2) | |
27 | 12 |
47 | 13 # Link directories for libraries |
14 link_directories(${FREETYPE_DIR}/lib) | |
15 | |
16 # Add your source files | |
29
dae463bbf5ca
implementing multi-thread and refactoring
Dennis C. M. <dennis@denniscm.com>
parents:
27
diff
changeset
|
17 add_executable(algo_animator |
47 | 18 src/main.c |
19 src/algorithms.c | |
20 src/algorithms.h | |
21 src/utils.c | |
22 src/utils.h | |
29
dae463bbf5ca
implementing multi-thread and refactoring
Dennis C. M. <dennis@denniscm.com>
parents:
27
diff
changeset
|
23 ) |
27 | 24 |
47 | 25 # Link libraries |
27 | 26 target_link_libraries(algo_animator |
47 | 27 ${OPENGL_LIBRARIES} |
28 "-framework OpenGL" | |
29 "-framework GLUT" | |
30 "-framework Cocoa" | |
27 | 31 freetype |
32 ) | |
33 | |
47 | 34 # Copy the 'fonts' directory to the build directory |
35 file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/fonts DESTINATION out/) |