Skip to content

Commit

Permalink
Added framework link calls to cmake in an amazingly jank fashion. But…
Browse files Browse the repository at this point in the history
… now is not the time for cmake prettiness.
  • Loading branch information
qdot committed Nov 12, 2010
1 parent 1617edd commit c2a6ecb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion c/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,9 @@ include_directories(${USB_INCLUDE_DIRS})

add_executable(glview glview.c)
find_library (PTHREAD pthread)
target_link_libraries(glview freenect GL GLU glut m)
IF(APPLE)
set(CMAKE_EXE_LINKER_FLAGS "-framework OpenGL -framework GLUT")
target_link_libraries(glview freenect)
ELSE()
target_link_libraries(glview freenect GL GLU glut)
ENDIF()

0 comments on commit c2a6ecb

Please sign in to comment.