Skip to content

Commit

Permalink
eglut: fix linking of backends. set resolution.
Browse files Browse the repository at this point in the history
  • Loading branch information
lubosz committed Oct 5, 2012
1 parent 4342877 commit 5dbb001
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/viewer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ foreach(BACKEND ${EGL_BACKENDS})
string(TOUPPER ${BACKEND} UP)

if(EGLUT_${UP}_FOUND)
add_executable(liblub-view-${BACKEND} egl.cpp)
target_link_libraries(liblub-view-${BACKEND} eglut_screen lubDemos)
install(TARGETS liblub-view-${BACKEND} DESTINATION "${CMAKE_INSTALL_BINDIR}")
add_executable(liblub-view-${BACKEND} egl.cpp)
string(REPLACE "drm" "screen" BACKEND_LIB ${BACKEND})
target_link_libraries(liblub-view-${BACKEND} eglut_${BACKEND_LIB} lubDemos)
install(TARGETS liblub-view-${BACKEND} DESTINATION "${CMAKE_INSTALL_BINDIR}")
else ()
message("Will not build ${BACKEND} backend")
message("Will not build ${BACKEND} backend")
endif()
endforeach(BACKEND)

Expand Down
1 change: 1 addition & 0 deletions apps/viewer/egl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ static void special_key(int special) {

int main(int argc, char *argv[]) {
eglutInitWindowSize(1920, 1200);
Scene::Instance().setResolution(1920, 1200);
eglutInitAPIMask(EGLUT_OPENGL_BIT);
eglutInit(argc, argv);

Expand Down

0 comments on commit 5dbb001

Please sign in to comment.