Agregada compatibilidad con Linux

parent c4b93e9a
Showing with 19 additions and 5 deletions
......@@ -11,8 +11,22 @@ add_executable(PAG_p1 ${MY_FILES} ${GLAD_FILES} ${IMGUI_FILES})
target_include_directories(PAG_p1 PUBLIC glad/include imgui/include )
find_package(opengl_system)
find_package(glfw3)
# Uncomment the following when using Conan, comment (# at line start) otherwise
target_link_libraries(PAG_p1 opengl::opengl)
target_link_libraries(PAG_p1 glfw)
\ No newline at end of file
#find_package(opengl_system)
#find_package(glfw3)
#target_link_libraries(PAG_p1 opengl::opengl)
#target_link_libraries(PAG_p1 glfw)
#===========================================
# Uncomment the following when using Linux, comment (# at line start) otherwise
find_package(glfw3 3.3 REQUIRED)
find_package(OpenGL REQUIRED)
target_include_directories(PAG_p1 PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>
$<INSTALL_INTERFACE:include>)
target_link_libraries(PAG_p1 PUBLIC glfw OpenGL::GL ${CMAKE_DL_LIBS})
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment