2018-11-26 12:58:53 -05:00
|
|
|
find_package(SDL)
|
|
|
|
find_package(OpenGL)
|
|
|
|
find_package(GLUT)
|
|
|
|
|
|
|
|
if(SDL_FOUND AND OPENGL_FOUND AND GLUT_FOUND)
|
|
|
|
include_directories(../src ${SDL_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${GLUT_INCLUDE_DIRS})
|
2019-12-27 21:13:32 -05:00
|
|
|
|
|
|
|
if(WIN32)
|
|
|
|
add_executable(wiiuseexample-sdl WIN32 sdl.c)
|
|
|
|
else()
|
|
|
|
add_executable(wiiuseexample-sdl sdl.c)
|
|
|
|
endif()
|
|
|
|
|
2018-11-26 12:58:53 -05:00
|
|
|
target_link_libraries(wiiuseexample-sdl wiiuse ${SDL_LIBRARY} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})
|
|
|
|
|
|
|
|
if(INSTALL_EXAMPLES)
|
|
|
|
install(TARGETS wiiuseexample-sdl
|
|
|
|
RUNTIME DESTINATION bin COMPONENT examples)
|
|
|
|
endif()
|
|
|
|
endif()
|