diff --git a/example-sdl/CMakeLists.txt b/example-sdl/CMakeLists.txt index b10a4b5..2dd6f9c 100644 --- a/example-sdl/CMakeLists.txt +++ b/example-sdl/CMakeLists.txt @@ -1,7 +1,9 @@ find_package(SDL) +find_package(OpenGL) +find_package(GLUT) if(SDL_FOUND) - include_directories(../src ${SDL_INCLUDE_DIR}) + include_directories(../src ${SDL_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${GLUT_INCLUDE_DIRS}) add_executable(example-sdl sdl.c) - target_link_libraries(example-sdl wiiuse ${SDL_LIBRARY}) -endif() \ No newline at end of file + target_link_libraries(example-sdl wiiuse ${SDL_LIBRARY} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES}) +endif()