OpenGL_Clock/CMakeLists.txt

44 lines
607 B
Text
Raw Permalink Normal View History

# CMake entry point
cmake_minimum_required (VERSION 3.0)
project(OpenGL_Analog_Clock C)
2018-04-22 22:40:31 +00:00
cmake_policy(SET CMP0072 NEW)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(glfw3 REQUIRED)
include_directories(
Include/
.
)
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
GLEW
)
2018-04-27 15:03:40 +00:00
set(CMAKE_C_FLAGS "-O0 -ggdb -lm")
add_definitions(
-DTW_STATIC
-DTW_NO_LIB_PRAGMA
-DTW_NO_DIRECT3D
-DGLEW_STATIC
-D_CRT_SECURE_NO_WARNINGS
)
2018-04-22 22:40:31 +00:00
add_executable(
clock
2018-02-17 14:32:44 +00:00
src/main.c
2018-04-15 22:40:13 +00:00
src/clock.c
2018-02-17 14:32:44 +00:00
src/shader.c
2018-04-15 22:40:13 +00:00
src/matrix.c
2018-04-22 22:40:31 +00:00
src/model.c
)
2018-04-22 22:40:31 +00:00
target_link_libraries(
clock
${ALL_LIBS}
)