Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Etienne Schmitt
CGoGN
Commits
29b2672a
Commit
29b2672a
authored
Nov 27, 2013
by
Thery Sylvain
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update for compile on mac
parent
09585b63
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
23 deletions
+25
-23
CMakeLists.txt
CMakeLists.txt
+5
-8
SCHNApps/Plugins/plugins_cmake.txt
SCHNApps/Plugins/plugins_cmake.txt
+4
-0
SCHNApps/src/schnapps.cpp
SCHNApps/src/schnapps.cpp
+4
-5
ThirdParty/CMakeLists.txt
ThirdParty/CMakeLists.txt
+5
-2
ThirdParty/PythonQt/src/PythonQt.h
ThirdParty/PythonQt/src/PythonQt.h
+1
-1
apps_cmake.txt
apps_cmake.txt
+3
-7
include/Utils/shaderMutator.h
include/Utils/shaderMutator.h
+3
-0
No files found.
CMakeLists.txt
View file @
29b2672a
...
...
@@ -137,14 +137,11 @@ ENDIF (WITH_GLEWMX)
# qq definition specifiques pour mac
IF
(
APPLE
)
# attention a changer pour chercher la bonne version automatiquement
SET
(
CMAKE_OSX_SYSROOT
"/Developer/SDKs/MacOSX10.6.sdk"
CACHE STRING
"developer SDK"
)
SET
(
CMAKE_SHARED_LINKER_FLAGS
"
${
CMAKE_SHARED_LINKER_FLAGS
}
-Wl,-undefined -Wl,dynamic_lookup"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-DMAC_OSX"
)
SET
(
CMAKE_OSX_ARCHITECTURES x86_64
)
SET
(
CGoGN_EXT_LIBS
${
CGoGN_EXT_LIBS
}
"-framework Foundation -framework cocoa"
)
ENDIF
(
APPLE
)
#IF(APPLE)
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAC_OSX")
# SET(CMAKE_OSX_ARCHITECTURES x86_64)
# SET (CGoGN_EXT_LIBS ${CGoGN_EXT_LIBS} "-framework Foundation -framework cocoa" )
#ENDIF(APPLE)
IF
(
WIN32
)
add_subdirectory
(
Release
)
...
...
SCHNApps/Plugins/plugins_cmake.txt
View file @
29b2672a
...
...
@@ -3,6 +3,10 @@ QT4_WRAP_UI( PLUGIN_UIC_FILES ${PLUGIN_UI_FILES} )
QT4_WRAP_CPP( PLUGIN_MOC_FILES ${PLUGIN_QOBJECT_FILES} )
IF(APPLE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -L/usr/local/lib")
ENDIF(APPLE)
IF( ${CMAKE_BUILD_TYPE} STREQUAL Debug )
ADD_DEFINITIONS(-DDEBUG)
...
...
SCHNApps/src/schnapps.cpp
View file @
29b2672a
#include "schnapps.h"
#include <QVBoxLayout>
#include <QSplitter>
#include <QMessageBox>
...
...
@@ -13,6 +11,9 @@
#include <QMouseEvent>
#include <QWheelEvent>
#include "mapHandler.h"
#include "schnapps.h"
#include "controlDock_cameraTab.h"
#include "controlDock_mapTab.h"
#include "controlDock_pluginTab.h"
...
...
@@ -23,7 +24,6 @@
#include "plugin.h"
#include "plugin_interaction.h"
#include "plugin_processing.h"
#include "mapHandler.h"
namespace
CGoGN
{
...
...
@@ -100,8 +100,7 @@ SCHNApps::SCHNApps(const QString& appPath, PythonQtObjectPtr& pythonContext, Pyt
connect
(
action_LoadPythonScript
,
SIGNAL
(
triggered
()),
this
,
SLOT
(
loadPythonScriptFromFileDialog
()));
// create & setup central widget (views)
glewInit
();
// glewInit();
m_centralLayout
=
new
QVBoxLayout
(
centralwidget
);
...
...
ThirdParty/CMakeLists.txt
View file @
29b2672a
...
...
@@ -29,6 +29,7 @@ SET (BUILD_SHARED_LIBS OFF CACHE BOOL
SET
(
WITH_ASSIMP ON CACHE BOOL
"build with Assimp"
)
SET
(
WITH_ZINRI ON CACHE BOOL
"build with Zinri libs"
)
SET
(
WITH_PYTHONQT ON CACHE BOOL
"build PythonQt (for Schnapps)"
)
IF
(
APPLE
)
SET
(
CMAKE_OSX_ARCHITECTURES x86_64
)
...
...
@@ -38,8 +39,10 @@ ENDIF(APPLE)
add_subdirectory
(
Tools Tools/build
)
add_subdirectory
(
PythonQt PythonQt/build
)
INSTALL
(
DIRECTORY PythonQt/src/ DESTINATION
${
CGoGN_ROOT_DIR
}
/ThirdParty/include/PythonQt FILES_MATCHING PATTERN
"*.h"
)
IF
(
WITH_PYTHONQT
)
add_subdirectory
(
PythonQt PythonQt/build
)
INSTALL
(
DIRECTORY PythonQt/src/ DESTINATION
${
CGoGN_ROOT_DIR
}
/ThirdParty/include/PythonQt FILES_MATCHING PATTERN
"*.h"
)
ENDIF
(
WITH_PYTHONQT
)
add_subdirectory
(
OpenNL OpenNL/build
)
INSTALL
(
DIRECTORY OpenNL/src/NL/ DESTINATION
${
CGoGN_ROOT_DIR
}
/ThirdParty/include/NL FILES_MATCHING PATTERN
"*.h"
)
...
...
ThirdParty/PythonQt/src/PythonQt.h
View file @
29b2672a
...
...
@@ -42,6 +42,7 @@
*/
//----------------------------------------------------------------------------------
#include <iostream>
#include "PythonQtSystem.h"
#include "PythonQtInstanceWrapper.h"
#include "PythonQtClassWrapper.h"
...
...
@@ -55,7 +56,6 @@
#include <QByteArray>
#include <QStringList>
#include <QtDebug>
#include <iostream>
class
PythonQtClassInfo
;
...
...
apps_cmake.txt
View file @
29b2672a
...
...
@@ -74,6 +74,7 @@ ELSE(WIN32)
find_package(SuiteSparse REQUIRED)
SET (COMMON_INCLUDES ${COMMON_INCLUDES} ${SUITESPARSE_INCLUDE_DIRS})
SET (COMMON_LIBS ${COMMON_LIBS} ${SUITESPARSE_LIBRARIES})
ENDIF(WIN32)
#optionnal libs
...
...
@@ -101,13 +102,8 @@ IF (WITH_QT)
SET (COMMON_LIBS ${COMMON_LIBS} ${QT_LIBRARIES} ${QGLVIEWER_LIBRARIES})
ENDIF (WITH_QT)
# qq definition specifiques pour mac
IF(APPLE)
# attention a changer pour chercher la bonne version automatiquement
SET(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX10.6.sdk" CACHE STRING "developer SDK")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-undefined -Wl,dynamic_lookup")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DMAC_OSX")
SET(CMAKE_OSX_ARCHITECTURES x86_64)
SET(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -L/usr/local/lib")
ENDIF(APPLE)
# qq definition specifiques pour windows
...
...
@@ -116,7 +112,7 @@ IF(WIN32)
set(CMAKE_CONFIGURATION_TYPES Release Debug)
set(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING "Only Release or Debug" FORCE)
ELSE(WIN32)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra
-fPIC
")
ENDIF(WIN32)
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)
...
...
include/Utils/shaderMutator.h
View file @
29b2672a
...
...
@@ -25,6 +25,9 @@
#ifndef _CGoGN_SHADERMUTATOR_H_
#define _CGoGN_SHADERMUTATOR_H_
#undef tolower
#undef toupper
#include "Utils/cgognStream.h"
#include <boost/regex.hpp>
#include <string>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment