Mercurial > solar_system
comparison CMakeLists.txt @ 1:9c54994a2635
Fixed OpenGL and OpenAL variable names
author | Eris Caffee <discordia@eldalin.com> |
---|---|
date | Tue, 29 Mar 2011 00:27:15 -0500 |
parents | 6b163267bd3e |
children | c24af3462002 |
comparison
equal
deleted
inserted
replaced
0:929801f96da1 | 1:fc7baf530be1 |
---|---|
403 option(Option_OpenGL_Dev "Build an OpenGL Application." OFF) | 403 option(Option_OpenGL_Dev "Build an OpenGL Application." OFF) |
404 | 404 |
405 if (Option_OpenGL_Dev) | 405 if (Option_OpenGL_Dev) |
406 | 406 |
407 find_package(OpenGL) | 407 find_package(OpenGL) |
408 if (NOT OPEN_FOUND) | |
409 message (FATAL_ERROR "OpenGL not found!") | |
410 endif (NOT OPEN_FOUND) | |
408 | 411 |
409 include_directories( | 412 include_directories( |
410 ${OpenGL_INCLUDE_DIR} | 413 ${OPENGL_INCLUDE_DIR} |
411 ${INCLUDE_DIRECTORIES} | 414 ${INCLUDE_DIRECTORIES} |
412 ) | 415 ) |
413 | 416 |
414 target_link_libraries(${App_Name} | 417 target_link_libraries(${App_Name} |
415 ${OpenGL_LIBRARIES} | 418 ${OPENGL_LIBRARIES} |
416 ${TARGET_LINK_LIBRARIES} | 419 ${TARGET_LINK_LIBRARIES} |
417 ) | 420 ) |
418 | 421 |
419 endif () | 422 endif () |
420 | 423 |
421 ################################################################################ | 424 ################################################################################ |
422 | 425 |
423 option(Option_OpenAL_Dev "Build an OpenAL Application." OFF) | 426 option(Option_OpenAL_Dev "Build an OpenAL Application." OFF) |
424 | 427 |
425 if (Option_OpenAL_Dev) | 428 if (Option_OpenAL_Dev) |
429 | |
426 find_package(OpenAL) | 430 find_package(OpenAL) |
431 if (NOT OPENAL_FOUND) | |
432 message (FATAL_ERROR "OpenAL not found!") | |
433 endif (NOT OPENAL_FOUND) | |
427 | 434 |
428 include_directories( | 435 include_directories( |
429 ${OpenAL_INCLUDE_DIR} | 436 ${OPENAL_INCLUDE_DIR} |
430 ${INCLUDE_DIRECTORIES} | 437 ${INCLUDE_DIRECTORIES} |
431 ) | 438 ) |
432 | 439 |
433 target_link_libraries(${App_Name} | 440 target_link_libraries(${App_Name} |
434 ${OpenAL_LIBRARIES} | 441 ${OPENAL_LIBRARY} |
435 ${TARGET_LINK_LIBRARIES} | 442 ${TARGET_LINK_LIBRARIES} |
436 ) | 443 ) |
437 | 444 |
438 endif () | 445 endif () |
439 | 446 |