Skip to content

Commit

Permalink
Change the target names of the binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
rpavlik committed Nov 11, 2010
1 parent fa5763d commit 7c06e81
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions example-sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ find_package(GLUT)

if(SDL_FOUND AND OPENGL_FOUND AND GLUT_FOUND)
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} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})
add_executable(wiiuseexample-sdl sdl.c)
target_link_libraries(wiiuseexample-sdl wiiuse ${SDL_LIBRARY} ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES})

if(INSTALL_EXAMPLES)
install(TARGETS example-sdl
install(TARGETS wiiuseexample-sdl
RUNTIME DESTINATION bin COMPONENT examples)
endif()
endif()
6 changes: 3 additions & 3 deletions example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
include_directories(../src)
add_executable(example example.c)
target_link_libraries(example wiiuse)
add_executable(wiiuseexample example.c)
target_link_libraries(wiiuseexample wiiuse)

if(INSTALL_EXAMPLES)
install(TARGETS example
install(TARGETS wiiuseexample
RUNTIME DESTINATION bin COMPONENT examples)
endif()

0 comments on commit 7c06e81

Please sign in to comment.