Commit 24591b39 authored by Ben Boeckel's avatar Ben Boeckel

molequeue: remove

Long live Remus!
parent ed2abb0b
......@@ -17,7 +17,6 @@ macro (SetupCMBSuperBuild)
ENABLE_libxml2
ENABLE_manta
ENABLE_moab
ENABLE_molequeue
ENABLE_mpi
ENABLE_png
ENABLE_remus
......
......@@ -130,7 +130,6 @@ ignore_project_warnings(boost)
ignore_project_warnings(gdal)
ignore_project_warnings(hdf5)
ignore_project_warnings(kml)
ignore_project_warnings(molequeue)
ignore_project_warnings(python)
ignore_project_warnings(qt)
ignore_project_warnings(szip)
......
......@@ -258,7 +258,6 @@ include(paraview)
include(gdal)
include(kml)
include(vxl)
include(molequeue)
include(zeroMQ)
include(remus)
include(shiboken)
......
......@@ -156,13 +156,3 @@ if (cmbworkflows_ENABLED)
DESTINATION "Workflows/"
COMPONENT superbuild)
endif ()
#currently molequeue doesn't install under applications after being built :()
#so we have a custom install rule for it. Also we should note that molequeue
#doesn't need to be fixed up in any form
install(CODE
"
file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${Package_Folder}\" USE_SOURCE_PERMISSIONS TYPE DIRECTORY FILES
\"${install_location}/molequeue.app\")
"
COMPONENT superbuild)
add_external_project(molequeue
DEPENDS qt
PATCH_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${SuperBuild_PROJECTS_DIR}/patches/molequeue.transport.messageidmanager_p.cpp
<SOURCE_DIR>/molequeue/transport/messageidmanager_p.cpp
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=ON
-DENABLE_TESTING:BOOL=OFF
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
)
......@@ -11,7 +11,7 @@ endif ()
set(CMB_TEST_DATA_ROOT "" CACHE PATH "Location of CMB's testing data")
add_external_project_or_just_build_dependencies(cmb
DEPENDS boost remus vxl kml gdal qt python paraview molequeue shiboken
DEPENDS boost remus vxl kml gdal qt python paraview shiboken
DEPENDS_OPTIONAL moab triangle smtk
CMAKE_ARGS
${extra_cmake_args}
......@@ -20,7 +20,6 @@ add_external_project_or_just_build_dependencies(cmb
-DParaView_DIR:PATH=${paraview_dir}
-DSMTK_DIR:PATH=${smtk_dir}
-DVTK_DIR:PATH=${vtk_dir}
-DMoleQueue_DIR:PATH=<INSTALL_DIR>
-DCMB_TEST_DATA_ROOT:PATH=${CMB_TEST_DATA_ROOT}
#specify semi-colon separated paths for session plugins
......
add_external_project(molequeue
DEPENDS qt
PATCH_COMMAND ${CMAKE_COMMAND} -E copy_if_different
${SuperBuild_PROJECTS_DIR}/patches/molequeue.transport.messageidmanager_p.cpp
<SOURCE_DIR>/molequeue/transport/messageidmanager_p.cpp
CMAKE_ARGS
-DBUILD_SHARED_LIBS:BOOL=ON
-DENABLE_TESTING:BOOL=OFF
-DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
)
/******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2012 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
******************************************************************************/
#include "messageidmanager_p.h"
#include "message.h"
#include <stdlib.h>
namespace MoleQueue {
MessageIdManager *MessageIdManager::m_instance = NULL;
MessageIdManager::MessageIdManager()
: m_generator(0)
{
// Clean up when program exits.
atexit(&cleanup);
}
void MessageIdManager::init()
{
if (!m_instance)
m_instance = new MessageIdManager();
}
void MessageIdManager::cleanup()
{
delete m_instance;
m_instance = NULL;
}
MessageIdType MessageIdManager::registerMethod(const QString &method)
{
init();
double result = ++m_instance->m_generator;
m_instance->m_lookup.insert(result, method);
return MessageIdType(result);
}
QString MessageIdManager::lookupMethod(const MessageIdType &id)
{
init();
return id.isDouble() ? m_instance->m_lookup.take(id.toDouble()) : QString();
}
} // end namespace MoleQueue
......@@ -29,7 +29,6 @@ install(DIRECTORY "${install_location}/bin/"
PATTERN "ModelBuilder"
PATTERN "mesh"
PATTERN "model"
PATTERN "molequeue"
PATTERN "shiboken")
# install all dlls to bin. This will install all VTK/ParaView dlls plus any
......
......@@ -62,10 +62,6 @@ add_revision(manta
URL "http://paraview.org/files/dependencies/manta-r2439.tar.gz"
URL_MD5 fbf4107fe2f6d7e8a5ae3dda71805bdc)
add_revision(molequeue
GIT_REPOSITORY "git://source.openchemistry.org/molequeue.git"
GIT_TAG e545ee25b4b79d5bae9e1)
if (UNIX)
add_revision(mpi
URL "http://paraview.org/files/dependencies/mpich2-1.4.1p1.tar.gz"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment