Exponent/src/CMakeLists.txt

13 lines
492 B
CMake
Raw Normal View History

2024-04-08 20:08:39 +00:00
add_executable(Exponent
main.cc
GLProgramLoader.cc
stb_image.cc
2024-04-08 20:08:39 +00:00
)
target_link_libraries(Exponent PUBLIC glfw glm::glm)
target_include_directories(Exponent PUBLIC ${CMAKE_SOURCE_DIR}/include)
target_compile_definitions(Exponent PRIVATE GLFW_INCLUDE_NONE)
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/shaders/shader.frag" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/shaders/")
file(COPY "${CMAKE_CURRENT_SOURCE_DIR}/shaders/shader.vert" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/shaders/")