view CMakeLists.txt @ 30:f945bcc3571f

refactor
author Dennis C. M. <dennis@denniscm.com>
date Thu, 29 Jun 2023 17:48:36 +0100
parents dae463bbf5ca
children f60144ebce23
line wrap: on
line source

cmake_minimum_required(VERSION 3.22)
project(algo_animator)

set(FREETYPE_DIR /usr/local/include/freetype2)

include_directories(${FREETYPE_DIR})

add_executable(algo_animator 
	src/main.c
	src/algorithms.c
	src/algorithms.h
	src/utils.c
	src/utils.h
)

target_link_libraries(algo_animator
    glut
    GL
    GLU
    m
    freetype
)

file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/fonts DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/build)