Successful build of Qt GUI on MAC OSX using cmake.
This commit is contained in:
parent
1206fcebbd
commit
321ea729d4
|
@ -33,7 +33,7 @@ else(WIN32)
|
||||||
add_definitions( -D_SYSTEM_MINIZIP ${MINIZIP_CFLAGS} )
|
add_definitions( -D_SYSTEM_MINIZIP ${MINIZIP_CFLAGS} )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
pkg_check_modules( GL REQUIRED gl)
|
pkg_check_modules( GL gl)
|
||||||
|
|
||||||
# Check for OpenGL
|
# Check for OpenGL
|
||||||
if ( ${GL_FOUND} )
|
if ( ${GL_FOUND} )
|
||||||
|
@ -64,7 +64,11 @@ else(WIN32)
|
||||||
|
|
||||||
add_definitions( -DHAVE_ASPRINTF ) # What system wouldn't have this?
|
add_definitions( -DHAVE_ASPRINTF ) # What system wouldn't have this?
|
||||||
|
|
||||||
|
if(APPLE)
|
||||||
|
set( SYS_LIBS "-framework OpenGL" )
|
||||||
|
else()
|
||||||
set( SYS_LIBS -lrt -lpthread )
|
set( SYS_LIBS -lrt -lpthread )
|
||||||
|
endif()
|
||||||
|
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue