Changeset 2f5562


Ignore:
Timestamp:
Mar 2, 2017, 7:25:26 AM (8 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_ChronosMutex, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, GeometryObjects, Gui_displays_atomic_force_velocity, IndependentFragmentGrids_IntegrationTest, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, RotateToPrincipalAxisSystem_UndoRedo, StoppableMakroAction, Subpackage_JobMarket, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, ThirdParty_MPQC_rebuilt_buildsystem, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, Ubuntu_1604_changes, stable
Children:
99689b
Parents:
363f28
git-author:
Frederik Heber <heber@…> (11/16/16 08:03:32)
git-committer:
Frederik Heber <heber@…> (03/02/17 07:25:26)
Message:

Added JobMarket as ThirdParty module, Missing CodePatterns_LDFLAGS in JobMarket.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile.am

    r363f28 r2f5562  
    44if COND_COMPILE_CODEPATTERNS
    55SUBDIRS += ThirdParty/CodePatterns
     6endif
     7if COND_COMPILE_JOBMARKET
     8SUBDIRS += ThirdParty/JobMarket
    69endif
    710SUBDIRS += ThirdParty/LinearAlgebra data/icons src src/unittests src/Tesselation/TriangleMatcher src/Bond/AdjacencyMatcher tests utils doc
  • ThirdParty/JobMarket/configure.ac

    r363f28 r2f5562  
    8585
    8686# CodePatterns library (requires new global NotificationChannel functions)
    87 AM_PATH_CODEPATTERNS([1.3.0], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
     87AM_PATH_CODEPATTERNS([1.3.2], $have_debug,,[
     88        # compile from ThirdParty
     89        [CodePatterns_LDFLAGS='-L$(top_builddir)/../CodePatterns/src']
     90        [CodePatterns_CFLAGS='-I$(top_srcdir)/../CodePatterns/src']
     91        AS_IF([test x"$enable_debug" != x"no"], [
     92                [CodePatterns_LIBS='-lcodepatterns-debug']
     93        ],[
     94                [CodePatterns_LIBS='-lcodepatterns']
     95        ])
     96        AC_SUBST(CodePatterns_LDFLAGS)
     97        AC_SUBST(CodePatterns_CFLAGS)
     98        AC_SUBST(CodePatterns_LIBS)
     99        #AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])
     100])
    88101
    89102# boost
  • ThirdParty/JobMarket/src/unittests/Makefile.am

    r363f28 r2f5562  
    1010lib_LTLIBRARIES =
    1111
    12 AM_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
     12AM_LDFLAGS = ${CodePatterns_LDFLAGS} $(CPPUNIT_LDFLAGS) -ldl
    1313AM_CPPFLAGS = -I$(top_srcdir)/src $(CPPUNIT_CFLAGS) $(BOOST_CPPFLAGS) ${CodePatterns_CFLAGS}
    1414
     
    5050  $(BOOST_THREAD_LDFLAGS) $(BOOST_THREAD_LIBS) \
    5151  $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    52   ${CodePatterns_LIBS}
     52  ${CodePatterns_LIBS} \
     53  $(CPPUNIT_LIBS)
    5354
    54 FragmentJobUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    5555FragmentJobUnitTest_SOURCES = UnitTestMain.cpp \
    5656  FragmentJobUnitTest.cpp \
     
    6060  stubs/FragmentJobStub.hpp
    6161FragmentJobUnitTest_LDADD = \
    62   ../JobMarket/libJobMarketJobs.la \
    63   $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
    64   $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    65   ${CodePatterns_LIBS}
     62  ${FRAGMENTATIONAUTOMATIONLIBS}
    6663
    67 FragmentQueueUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    6864FragmentQueueUnitTest_SOURCES = UnitTestMain.cpp \
    6965  FragmentQueueUnitTest.cpp \
     
    7470  stubs/ObserverStub.hpp
    7571FragmentQueueUnitTest_LDADD = \
    76   ../JobMarket/libJobMarketJobs.la \
    77   $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
    78   $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    79   ${CodePatterns_LIBS}
     72  ${FRAGMENTATIONAUTOMATIONLIBS}
    8073
    81 FragmentResultUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    8274FragmentResultUnitTest_SOURCES = UnitTestMain.cpp \
    8375  FragmentResultUnitTest.cpp \
    8476  FragmentResultUnitTest.hpp
    8577FragmentResultUnitTest_LDADD = \
    86         ../JobMarket/libJobMarketJobs.la \
    87   $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
    88   $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    89   ${CodePatterns_LIBS}
     78  ${FRAGMENTATIONAUTOMATIONLIBS}
    9079
    91 OperationQueueUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    9280OperationQueueUnitTest_SOURCES = UnitTestMain.cpp \
    9381  OperationQueueUnitTest.cpp \
     
    9583  stubs/AsyncOperationStub.hpp
    9684OperationQueueUnitTest_LDADD = \
    97         ../JobMarket/libJobMarketOperations.la \
    98         ../JobMarket/libJobMarketJobs.la \
    99         ../JobMarket/libJobMarketHelper.la \
     85  ../JobMarket/libJobMarketOperations.la \
     86  ../JobMarket/libJobMarketJobs.la \
     87  ../JobMarket/libJobMarketHelper.la \
    10088  $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    101   ${CodePatterns_LIBS}
     89  ${CodePatterns_LIBS} \
     90  $(CPPUNIT_LIBS)
    10291
    103 SystemCommandJobUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    10492SystemCommandJobUnitTest_SOURCES = UnitTestMain.cpp \
    10593  SystemCommandJobUnitTest.cpp \
    10694  SystemCommandJobUnitTest.hpp
    10795SystemCommandJobUnitTest_LDADD = \
    108         ../JobMarket/libJobMarketJobs.la \
    109   $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
     96  ${FRAGMENTATIONAUTOMATIONLIBS} \
    11097  $(BOOST_IOSTREAMS_LDFLAGS) $(BOOST_IOSTREAMS_LIBS) \
    111   $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS) \
    112   $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    113   ${CodePatterns_LIBS}
     98  $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_FILESYSTEM_LIBS)
    11499
    115 WorkerAddressUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    116100WorkerAddressUnitTest_SOURCES = UnitTestMain.cpp \
    117101  WorkerAddressUnitTest.cpp \
    118102  WorkerAddressUnitTest.hpp
    119103WorkerAddressUnitTest_LDADD = \
    120         ../JobMarket/libJobMarketHelper.la \
    121   $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
    122   $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    123   ${CodePatterns_LIBS}
     104  ../JobMarket/libJobMarketHelper.la \
     105  ${FRAGMENTATIONAUTOMATIONLIBS}
    124106
    125 WorkerPoolUnitTest_LDFLAGS = ${CodePatterns_LIBS} $(CPPUNIT_LIBS) -ldl
    126107WorkerPoolUnitTest_SOURCES = UnitTestMain.cpp \
    127108  WorkerPoolUnitTest.cpp \
     
    130111  stubs/ObserverStub.hpp
    131112WorkerPoolUnitTest_LDADD = \
    132         ../JobMarket/libJobMarketPool.la \
    133         ../JobMarket/libJobMarketHelper.la \
     113  ../JobMarket/libJobMarketPool.la \
     114  ../JobMarket/libJobMarketHelper.la \
    134115  $(BOOST_SERIALIZATION_LDFLAGS) $(BOOST_SERIALIZATION_LIBS) \
    135116  $(BOOST_SYSTEM_LDFLAGS) $(BOOST_SYSTEM_LIBS) \
    136   ${CodePatterns_LIBS}
     117  ${CodePatterns_LIBS} \
     118  $(CPPUNIT_LIBS)
    137119
    138120#AUTOMAKE_OPTIONS = parallel-tests
  • configure.ac

    r363f28 r2f5562  
    285285  enable_jobmarket="yes")
    286286AC_MSG_RESULT($enable_jobmarket)
     287compile_jobmarket="no"
    287288AS_IF([test x"$enable_jobmarket" != x"no"],[
    288289  # JobMarket library (needs SystemCommandJob with suffix)
     
    292293    AC_DEFINE(HAVE_JOBMARKET,1, ["use JobMarket to calculate fragment jobs."])
    293294    ],[
    294       enable_jobmarket="no"
     295        AC_CONFIG_SUBDIRS([ThirdParty/JobMarket])
     296        compile_jobmarket="yes"
     297        [JobMarket_CFLAGS='-I$(top_srcdir)/ThirdParty/JobMarket/src']
     298        [JobMarket_LDFLAGS='-L$(top_builddir)/ThirdParty/JobMarket/src/JobMarket']
     299        [JobMarket_LIBS='-lJobMarket']
     300        [JobMarket_Controller_LIBS='-lJobMarketController']
     301        [JobMarket_Server_LIBS='-lJobMarketServer']
     302        [JobMarket_PoolWorker_LIBS='-lJobMarketPoolWorker']
     303        AC_SUBST(JobMarket_CFLAGS)
     304        AC_SUBST(JobMarket_LDFLAGS)
     305        AC_SUBST(JobMarket_LIBS)
     306        AC_SUBST(JobMarket_Controller_LIBS)
     307        AC_SUBST(JobMarket_Server_LIBS)
     308        AC_SUBST(JobMarket_PoolWorker_LIBS)
    295309    ])
    296310]
     311AM_CONDITIONAL([COND_COMPILE_JOBMARKET], [test x"$compile_jobmarket" = x"yes"])
    297312#[
    298313#  AC_DEFINE(HAVE_JOBMARKET,0, ["use JobMarket to calculate fragment jobs."])
Note: See TracChangeset for help on using the changeset viewer.