Skip to content

Commit

Permalink
Mac OS X build fixes and other build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aselle committed Nov 24, 2013
1 parent 8268bf3 commit da57fca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/SeExpr/SeExprFunc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#include <dirent.h>
#endif



#include "SeExpression.h"
#include "SeExprFunc.h"
#include "SeExprNode.h"
Expand Down Expand Up @@ -190,7 +192,7 @@ SeExprFunc::getDocString(const char* functionName)

#ifndef SEEXPR_WIN32

#ifdef __APPLE__
#if defined(__APPLE__) && !defined(__MAC_10_9)
static int MatchPluginName(struct dirent* dir)
#else
static int MatchPluginName(const struct dirent* dir)
Expand Down
4 changes: 4 additions & 0 deletions src/SeExpr/SePlatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
@brief Platform-specific classes, functions, and includes.
*/

#ifdef __APPLE__
# include <Availability.h>
#endif

// platform-specific includes
#if defined(_WIN32) || defined(_WINDOWS) || defined(_MSC_VER)
# ifndef WINDOWS
Expand Down
3 changes: 3 additions & 0 deletions src/SeExprEditor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0

find_package(OpenGL)
find_package(Qt4 COMPONENTS QtCore QtGui QtOpenGL) # find and setup Qt4 for this project
if(QT4_FOUND)

Expand Down Expand Up @@ -47,6 +48,8 @@ ENDIF(WIN32)
target_link_libraries(SeExprEditor ${QT_QTGUI_LIBRARY})
target_link_libraries(SeExprEditor ${QT_QTOPENGL_LIBRARY})
target_link_libraries(SeExprEditor ${QT_QTOPENGL_LIBRARY})
target_link_libraries(SeExprEditor ${GLUT_LIBRARY} ${OPENGL_LIBRARY})

IF(WIN32)
target_link_libraries(SeExprEditor opengl32)
ENDIF(WIN32)
Expand Down
12 changes: 7 additions & 5 deletions src/demos/imageEditor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ cmake_policy(SET CMP0005 NEW)
add_definitions(-DIMAGE_EDITOR_ROOT="${CMAKE_INSTALL_PREFIX}")

find_package(Qt4 COMPONENTS QtCore QtGui) # find and setup Qt4 for this project
if(QT4_FOUND)
find_package(PNG)

if(QT4_FOUND AND PNG_FOUND)
set(imageEditor_MOC_HDRS ImageEditorDialog.h)
set(imageEditor_CPPS imageEditor.cpp)
qt4_wrap_cpp(imageEditor_MOC_SRCS ${imageEditor_MOC_HDRS})
Expand All @@ -31,14 +33,14 @@ if(QT4_FOUND)
target_link_libraries(imageEditor ${QT_QTGUI_LIBRARY})
target_link_libraries(imageEditor ${SEEXPR_LIBRARIES})
target_link_libraries(imageEditor ${SEEXPR_EDITOR_LIBRARIES})
endif(QT4_FOUND)

FIND_PACKAGE(PNG)
IF(PNG_FOUND)
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
TARGET_LINK_LIBRARIES(imageEditor ${PNG_LIBRARIES})
install(TARGETS imageEditor DESTINATION bin)
ENDIF(PNG_FOUND)


endif(QT4_FOUND)


INSTALL( FILES fbm.se noisecolor1.se noisecolor2.se noise.se raytrace.se sinc.se DESTINATION ${CMAKE_INSTALL_PREFIX}/expressions/ )

0 comments on commit da57fca

Please sign in to comment.