diff --git a/hurricane/src/isobar/CMakeLists.txt b/hurricane/src/isobar/CMakeLists.txt index 1f34ff1c..916814b6 100644 --- a/hurricane/src/isobar/CMakeLists.txt +++ b/hurricane/src/isobar/CMakeLists.txt @@ -84,19 +84,16 @@ hurricane/isobar/PyUpdateSession.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} - ${includes2} DESTINATION include/coriolis2/hurricane/isobar ) - add_library ( isobar ${sources} ${sources2} ) + add_library ( isobar ${sources} ) + target_link_libraries ( isobar hurricane ${PYTHON_LIBRARIES}) add_library ( Hurricane MODULE ${sources} ) set_target_properties ( Hurricane PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1" PREFIX "" ) + target_link_libraries ( Hurricane isobar ) install ( TARGETS isobar DESTINATION lib${LIB_SUFFIX} ) install ( TARGETS Hurricane DESTINATION ${PYTHON_SITE_PACKAGES} ) + install ( FILES ${includes} DESTINATION include/coriolis2/hurricane/isobar ) diff --git a/hurricane/src/viewer/CMakeLists.txt b/hurricane/src/viewer/CMakeLists.txt index 5b47e247..80fb051c 100644 --- a/hurricane/src/viewer/CMakeLists.txt +++ b/hurricane/src/viewer/CMakeLists.txt @@ -98,22 +98,28 @@ set ( pycpps PyViewer.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_add_resources ( RCC_SRCS CellViewer.qrc ) - add_library ( viewer ${cpps} ${MOC_SRCS} ${RCC_SRCS} ${pycpps} ) - target_link_libraries ( viewer hurricane ${QT_LIBRARIES} ${Boost_LIBRARIES} ) - add_library ( Viewer MODULE ${pycpps} ) - target_link_libraries ( Viewer viewer ) - set_target_properties ( Viewer PROPERTIES + add_library ( viewer ${cpps} ${MOC_SRCS} ${RCC_SRCS} ${sources2} ${pycpps} ) + target_link_libraries ( viewer hurricane isobar ${CONFIGURATION_LIBRARY} ${Boost_LIBRARIES} ${QT_LIBRARIES} ) + add_library ( pyViewer MODULE ${pycpps} ) + target_link_libraries ( pyViewer viewer ) + set_target_properties ( pyViewer PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1" + OUTPUT_NAME "Viewer" PREFIX "" ) install ( FILES ${includes} + ${includes2} ${mocincludes} ${pyincludes} DESTINATION include/coriolis2/hurricane/viewer ) install ( TARGETS viewer DESTINATION lib${LIB_SUFFIX} ) - install ( TARGETS Viewer DESTINATION ${PYTHON_SITE_PACKAGES} ) + install ( TARGETS pyViewer DESTINATION ${PYTHON_SITE_PACKAGES} ) diff --git a/hurricane/src/isobar/Script.cpp b/hurricane/src/viewer/Script.cpp similarity index 99% rename from hurricane/src/isobar/Script.cpp rename to hurricane/src/viewer/Script.cpp index 5e07d02f..e6a23f84 100644 --- a/hurricane/src/isobar/Script.cpp +++ b/hurricane/src/viewer/Script.cpp @@ -41,9 +41,9 @@ #include #include "hurricane/Error.h" #include "hurricane/Cell.h" -#include "hurricane/viewer/PyCellViewer.h" #include "hurricane/isobar/PyCell.h" -#include "hurricane/isobar/Script.h" +#include "hurricane/viewer/PyCellViewer.h" +#include "hurricane/viewer/Script.h" namespace { diff --git a/hurricane/src/viewer/ScriptWidget.cpp b/hurricane/src/viewer/ScriptWidget.cpp index e3e3e299..75d649c3 100644 --- a/hurricane/src/viewer/ScriptWidget.cpp +++ b/hurricane/src/viewer/ScriptWidget.cpp @@ -31,7 +31,6 @@ using namespace std; namespace bfs = boost::filesystem; #include "hurricane/Warning.h" -#include "hurricane/isobar/Script.h" #include #include @@ -43,6 +42,7 @@ namespace bfs = boost::filesystem; #include #include "hurricane/viewer/Graphics.h" +#include "hurricane/viewer/Script.h" #include "hurricane/viewer/ScriptWidget.h" #include "hurricane/viewer/CellViewer.h" diff --git a/hurricane/src/isobar/hurricane/isobar/Script.h b/hurricane/src/viewer/hurricane/viewer/Script.h similarity index 100% rename from hurricane/src/isobar/hurricane/isobar/Script.h rename to hurricane/src/viewer/hurricane/viewer/Script.h