Changeset 060ba4


Ignore:
Timestamp:
Oct 6, 2011, 12:08:31 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
d238e7
Parents:
bd8788
git-author:
Frederik Heber <heber@…> (08/26/11 14:28:48)
git-committer:
Frederik Heber <heber@…> (10/06/11 12:08:31)
Message:

Replaced m4 macro gwqt4.m4 by bnv_have_qt.m4

  • as is used with seismolo.
  • @MOC@ -> QTMOC, @UIC@ -> QT_UIC.
  • QT_LIBS has it all.
  • new QT_DEBUG when Qt debug should be printed or not.
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rbd8788 r060ba4  
    5656  AC_DEFINE(LOG_OBSERVER,1, ["Use observer log."])
    5757  AC_DEFINE(HAVE_DEBUG,2, ["Use debug setting to compile code."])
     58  AC_DEFINE(QT_DEBUG,, ["Enable Qt debug messages."])
    5859  have_debug="full"
    5960else
    6061  AC_DEFINE(NDEBUG,1, ["Don't compile in debugging code."])
    6162  AC_DEFINE(HAVE_DEBUG,0, ["Use debug setting to compile code."])
     63  AC_DEFINE(QT_NO_DEBUG,, ["Disable Qt debug messages."])
    6264  have_debug="no"
    6365fi
     
    119121
    120122#QT4 libraries
    121 gw_CHECK_QT4
    122 AX_CHECK_GLU
     123BNV_HAVE_QT
     124#gw_CHECK_QT4
     125#AX_CHECK_GLU
    123126#AC_MSG_NOTICE(["GLU_CFLAGS: $GLU_CFLAGS, GLU_CXXFLAGS: $GLU_CXXFLAGS, GLU_LDFLAGS: $GLU_LDFLAGS, GLU_LIBS: $GLU_LIBS"])
    124127
  • src/UIElements/Makefile.am

    rbd8788 r060ba4  
    237237libMolecuilderUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
    238238libMolecuilderQtUI_la_includedir = $(includedir)/MoleCuilder/UIElements/
    239 libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${QT_CXXFLAGS}
    240 libMolecuilderQtUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} ${QT_CXXFLAGS}
     239libMolecuilderUI_la_CPPFLAGS = ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
     240libMolecuilderQtUI_la_CPPFLAGS = ${QT_CXXFLAGS} ${GLU_CXXFLAGS} ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS}
    241241libMolecuilderUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
    242242libMolecuilderQtUI_la_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS)
     
    259259
    260260libMolecuilderQtUI_la_LIBADD = \
    261        ${QT_LIB_GUI} \
     261       ${QT_LIBS} \
    262262       -lQtOpenGL \
    263        ${GLU_LIBS} \
    264        ${QT_LDADD}
     263       ${GLU_LIBS}
    265264
    266265
     
    278277libMolecuilderUI_la_SOURCES = ${UISOURCE}
    279278libMolecuilderQtUI_la_SOURCES = ${QTUISOURCE}
    280 nodist_libMolecuilderQtUI_la_SOURCES = allmocs.moc.cpp
     279nodist_libMolecuilderQtUI_la_SOURCES =
    281280
    282281## Instruct libtool to include ABI version information in the generated shared
     
    325324
    326325ui_dialoglight.h: UIElements/Views/Qt4/dialoglight.ui
    327         @UIC@ -o $@ $<
     326        $(QT_UIC) -o $@ $<
    328327
    329328ui_changeposition.h: UIElements/Views/Qt4/changeposition.ui
    330         @UIC@ -o $@ $<
     329        $(QT_UIC) -o $@ $<
    331330
    332331moc_dialoglight.cpp: ui_dialoglight.h
    333         @MOC@ -o $@ $<
     332        $(QT_MOC) -o $@ $<
    334333
    335334moc_changeposition.cpp: ui_changeposition.h
    336         @MOC@ -o $@ $<
     335        $(QT_MOC) -o $@ $<
     336
     337nodist_libMolecuilderQtUI_la_SOURCES += allmocs.moc.cpp
    337338
    338339#Rules needed for Qt4
     
    345346        echo "Making mocfile for $$header"; \
    346347        target=`basename $$header | sed "s/\(.*\)\..*/\1.moc.cpp/"`;\
    347         $(MOC) $(srcdir)/$$header -o $$target \
     348        $(QT_MOC) $(srcdir)/$$header -o $$target \
    348349        || eval $$failcom; \
    349350        echo "#include \"$$target\"" >> allmocs.moc.cpp; \
Note: See TracChangeset for help on using the changeset viewer.