Updates to the CMake build system for Mac OSX

This commit is contained in:
Ravi Mathur
2016-08-10 14:30:28 +01:00
committed by Robert Osfield
parent 2b9dfab1fc
commit e9d6737ec4
8 changed files with 159 additions and 90 deletions

View File

@@ -1,3 +1,9 @@
# On OSX, this example only compiles if using Cocoa
IF(APPLE AND NOT (OSG_WINDOWING_SYSTEM STREQUAL "Cocoa"))
MESSAGE(WARNING "Disabling osgmultitouch example because it requires OSG_WINDOWING_SYSTEM to be Cocoa")
RETURN()
ENDIF()
SET(TARGET_SRC osgmultitouch.cpp )
#### end var setup ###

View File

@@ -1,5 +1,8 @@
#this file is automatically generated
# On OSX, this example only compiles if using Cocoa
IF(APPLE AND NOT (OSG_WINDOWING_SYSTEM STREQUAL "Cocoa"))
MESSAGE(WARNING "Disabling osgoscdevice example because it requires OSG_WINDOWING_SYSTEM to be Cocoa")
RETURN()
ENDIF()
SET(TARGET_SRC osgoscdevice.cpp )
#### end var setup ###

View File

@@ -1,3 +1,9 @@
# On OSX, this example only compiles if using Cocoa
IF(APPLE AND NOT (OSG_WINDOWING_SYSTEM STREQUAL "Cocoa"))
MESSAGE(WARNING "Disabling osgviewerCocoa example because it requires OSG_WINDOWING_SYSTEM to be Cocoa")
RETURN()
ENDIF()
FILE(GLOB ui_files_1 "English.lproj/*.strings")
FILE(GLOB ui_files_2 "English.lproj/MainMenu.nib/*.nib")
SET(TARGET_SRC ViewerCocoa.mm main.mm Info.plist ${ui_files_1} ${ui_files_2})