mirror of
git://windcorp.ru/ProgressiaTexturePreviewer.git
synced 2025-04-21 06:30:45 +03:00
32 lines
773 B
CMake
32 lines
773 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
cmake_policy(SET CMP0072 NEW)
|
|
|
|
project(progressiatexturepreviewer)
|
|
|
|
add_executable(progressiatexturepreviewer
|
|
main.cpp
|
|
|
|
glad/src/gl.c
|
|
stb/src/stb_image.c
|
|
)
|
|
|
|
install(TARGETS progressiatexturepreviewer RUNTIME DESTINATION bin)
|
|
|
|
# Link with GLFW3
|
|
find_package(glfw3 3.2 REQUIRED)
|
|
target_link_libraries(progressiatexturepreviewer glfw)
|
|
|
|
# Link with OpenGL
|
|
find_package(OpenGL REQUIRED)
|
|
target_link_libraries(progressiatexturepreviewer OpenGL::GL)
|
|
|
|
# Link with GLM
|
|
find_package(glm REQUIRED)
|
|
target_link_libraries(progressiatexturepreviewer glm)
|
|
|
|
# Use GLAD
|
|
target_include_directories(progressiatexturepreviewer PRIVATE glad/include)
|
|
|
|
# Use STB Image
|
|
target_include_directories(progressiatexturepreviewer PRIVATE stb/include)
|