OpenGL_Clock/CMakeLists.txt

38 lines
559 B
Text
Raw Normal View History

2018-02-05 22:28:51 +00:00
# CMake entry point
cmake_minimum_required (VERSION 3.0)
project (OpenGL_Analog_Clock)
find_package(OpenGL REQUIRED)
2018-02-07 00:24:12 +00:00
find_package(GLEW REQUIRED)
find_package(glfw3 REQUIRED)
include_directories(
Include/
.
)
2018-02-05 22:28:51 +00:00
set(ALL_LIBS
${OPENGL_LIBRARY}
glfw
GLEW
)
2018-02-07 00:24:12 +00:00
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -ggdb")
2018-02-05 22:28:51 +00:00
add_definitions(
-DTW_STATIC
-DTW_NO_LIB_PRAGMA
-DTW_NO_DIRECT3D
-DGLEW_STATIC
-D_CRT_SECURE_NO_WARNINGS
)
add_executable(clock
main.c
2018-02-07 00:24:12 +00:00
shader.c
2018-02-05 22:28:51 +00:00
)
target_link_libraries(clock
${ALL_LIBS}
)