mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 05:21:49 +03:00
fix cmake for MACOS
This commit is contained in:
parent
1580fa42f8
commit
3a0d98e7e7
@ -27,8 +27,12 @@ foreach( testsourcefile ${APP_SOURCES} )
|
||||
target_link_libraries(${testname} ${MATH_LIBRARY})
|
||||
endif()
|
||||
if (GLUT_FOUND)
|
||||
if(APPLE)
|
||||
target_compile_options(${testname} PUBLIC -Wno-deprecated)
|
||||
endif(APPLE)
|
||||
target_compile_definitions(${testname} PUBLIC USE_GLUT)
|
||||
target_link_libraries(${testname} OpenGL::GL GLUT::GLUT)
|
||||
target_include_directories(${testname} PUBLIC ${GLUT_INCLUDE_DIRS})
|
||||
target_link_libraries(${testname} OpenGL::GL ${GLUT_LIBRARIES})
|
||||
endif(GLUT_FOUND)
|
||||
install(TARGETS ${testname} DESTINATION "bin/graphics")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user