Minor changes for compatibility with Mac osx 10.6
- moving Script from isobar to viewer - adding missing target_link_libraries - adding boost::filesystem component dependency
This commit is contained in:
parent
21e0040b3b
commit
b2e2eafadb
|
@ -84,19 +84,16 @@
|
||||||
hurricane/isobar/PyUpdateSession.h
|
hurricane/isobar/PyUpdateSession.h
|
||||||
hurricane/isobar/PyVertical.h
|
hurricane/isobar/PyVertical.h
|
||||||
)
|
)
|
||||||
# source2 & include2 for module that are *not* Python wrappers but true
|
|
||||||
# Hurricane modules.
|
|
||||||
set ( sources2 Script.cpp )
|
|
||||||
set ( includes2 hurricane/isobar/Script.h )
|
|
||||||
|
|
||||||
|
|
||||||
install ( FILES ${includes}
|
add_library ( isobar ${sources} )
|
||||||
${includes2} DESTINATION include/coriolis2/hurricane/isobar )
|
target_link_libraries ( isobar hurricane ${PYTHON_LIBRARIES})
|
||||||
add_library ( isobar ${sources} ${sources2} )
|
|
||||||
add_library ( Hurricane MODULE ${sources} )
|
add_library ( Hurricane MODULE ${sources} )
|
||||||
set_target_properties ( Hurricane PROPERTIES
|
set_target_properties ( Hurricane PROPERTIES
|
||||||
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
)
|
)
|
||||||
|
target_link_libraries ( Hurricane isobar )
|
||||||
install ( TARGETS isobar DESTINATION lib${LIB_SUFFIX} )
|
install ( TARGETS isobar DESTINATION lib${LIB_SUFFIX} )
|
||||||
install ( TARGETS Hurricane DESTINATION ${PYTHON_SITE_PACKAGES} )
|
install ( TARGETS Hurricane DESTINATION ${PYTHON_SITE_PACKAGES} )
|
||||||
|
install ( FILES ${includes} DESTINATION include/coriolis2/hurricane/isobar )
|
||||||
|
|
|
@ -98,22 +98,28 @@
|
||||||
set ( pycpps PyViewer.cpp
|
set ( pycpps PyViewer.cpp
|
||||||
PyCellViewer.cpp
|
PyCellViewer.cpp
|
||||||
)
|
)
|
||||||
|
# source2 & include2 for module that are *not* Python wrappers but true
|
||||||
|
# Hurricane modules.
|
||||||
|
set ( sources2 Script.cpp )
|
||||||
|
set ( includes2 hurricane/viewer/Script.h )
|
||||||
|
|
||||||
qt4_wrap_cpp ( MOC_SRCS ${mocincludes} )
|
qt4_wrap_cpp ( MOC_SRCS ${mocincludes} )
|
||||||
qt4_add_resources ( RCC_SRCS CellViewer.qrc )
|
qt4_add_resources ( RCC_SRCS CellViewer.qrc )
|
||||||
|
|
||||||
add_library ( viewer ${cpps} ${MOC_SRCS} ${RCC_SRCS} ${pycpps} )
|
add_library ( viewer ${cpps} ${MOC_SRCS} ${RCC_SRCS} ${sources2} ${pycpps} )
|
||||||
target_link_libraries ( viewer hurricane ${QT_LIBRARIES} ${Boost_LIBRARIES} )
|
target_link_libraries ( viewer hurricane isobar ${CONFIGURATION_LIBRARY} ${Boost_LIBRARIES} ${QT_LIBRARIES} )
|
||||||
add_library ( Viewer MODULE ${pycpps} )
|
add_library ( pyViewer MODULE ${pycpps} )
|
||||||
target_link_libraries ( Viewer viewer )
|
target_link_libraries ( pyViewer viewer )
|
||||||
set_target_properties ( Viewer PROPERTIES
|
set_target_properties ( pyViewer PROPERTIES
|
||||||
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
|
||||||
|
OUTPUT_NAME "Viewer"
|
||||||
PREFIX ""
|
PREFIX ""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
install ( FILES ${includes}
|
install ( FILES ${includes}
|
||||||
|
${includes2}
|
||||||
${mocincludes}
|
${mocincludes}
|
||||||
${pyincludes} DESTINATION include/coriolis2/hurricane/viewer )
|
${pyincludes} DESTINATION include/coriolis2/hurricane/viewer )
|
||||||
install ( TARGETS viewer DESTINATION lib${LIB_SUFFIX} )
|
install ( TARGETS viewer DESTINATION lib${LIB_SUFFIX} )
|
||||||
install ( TARGETS Viewer DESTINATION ${PYTHON_SITE_PACKAGES} )
|
install ( TARGETS pyViewer DESTINATION ${PYTHON_SITE_PACKAGES} )
|
||||||
|
|
|
@ -41,9 +41,9 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include "hurricane/Error.h"
|
#include "hurricane/Error.h"
|
||||||
#include "hurricane/Cell.h"
|
#include "hurricane/Cell.h"
|
||||||
#include "hurricane/viewer/PyCellViewer.h"
|
|
||||||
#include "hurricane/isobar/PyCell.h"
|
#include "hurricane/isobar/PyCell.h"
|
||||||
#include "hurricane/isobar/Script.h"
|
#include "hurricane/viewer/PyCellViewer.h"
|
||||||
|
#include "hurricane/viewer/Script.h"
|
||||||
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
|
@ -31,7 +31,6 @@ using namespace std;
|
||||||
namespace bfs = boost::filesystem;
|
namespace bfs = boost::filesystem;
|
||||||
|
|
||||||
#include "hurricane/Warning.h"
|
#include "hurricane/Warning.h"
|
||||||
#include "hurricane/isobar/Script.h"
|
|
||||||
|
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QLineEdit>
|
#include <QLineEdit>
|
||||||
|
@ -43,6 +42,7 @@ namespace bfs = boost::filesystem;
|
||||||
#include <QVBoxLayout>
|
#include <QVBoxLayout>
|
||||||
|
|
||||||
#include "hurricane/viewer/Graphics.h"
|
#include "hurricane/viewer/Graphics.h"
|
||||||
|
#include "hurricane/viewer/Script.h"
|
||||||
#include "hurricane/viewer/ScriptWidget.h"
|
#include "hurricane/viewer/ScriptWidget.h"
|
||||||
#include "hurricane/viewer/CellViewer.h"
|
#include "hurricane/viewer/CellViewer.h"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue