Refactored the inclusion of the headers in the ADD_LIBRARY so that they aren't

added under OSX.
This commit is contained in:
Robert Osfield
2008-04-23 20:50:53 +00:00
parent 77b98eb5f8
commit 8ae30c9bfc
14 changed files with 101 additions and 15 deletions

View File

@@ -30,10 +30,16 @@ SET(LIB_PUBLIC_HEADERS
${HEADER_PATH}/WriteFile
)
IF(APPLE)
SET(ADD_LIBRARY_HEADERS "")
ELSEIF(APPLE)
SET(ADD_LIBRARY_HEADERS ${LIB_PUBLIC_HEADERS} )
ENDIF(APPLE)
# FIXME: For OS X, need flag for Framework or dylib
ADD_LIBRARY(${LIB_NAME}
${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
${LIB_PUBLIC_HEADERS}
${ADD_LIBRARY_HEADERS}
Archive.cpp
DatabasePager.cpp
DotOsgWrapper.cpp