Skip to content

Commit

Permalink
Customized MOC compile flags as adviced in LARG/HFO#79 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardo91 authored and Bardo91 committed Sep 11, 2019
1 parent 1bacf57 commit f3ae1f5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/qtcoinrave/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ if (NOT QT_FOUND)
endif()

if (QT_FOUND AND QT_QTCORE_FOUND AND QT_QTGUI_FOUND AND SOQT_LIBRARY_FOUND AND COIN_LIBRARY_FOUND)

message(STATUS "Detected SoQt/Coin3D GUI, making plugin")
include_directories(${OPENGL_INCLUDE_DIR} ${SOQT_INCLUDE_DIRS} ${COIN_INCLUDE_DIRS})
link_directories(${OPENRAVE_LINK_DIRS} ${SOQT_LINK_DIRS} ${COIN_LINK_DIRS})
Expand All @@ -27,6 +28,13 @@ if (QT_FOUND AND QT_QTCORE_FOUND AND QT_QTGUI_FOUND AND SOQT_LIBRARY_FOUND AND C
include(${QT_USE_FILE})
qt4_wrap_cpp(MOC_OUTPUT_FILES ${QTCOIN_MOCS})

if (Boost_MINOR_VERSION LESS 65)
QT4_WRAP_CPP(MOC_OUTPUT_FILES ${QTCOIN_MOCS} OPTIONS -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) #for boost previous to 1.65.1
else(Boost_MINOR_VERSION LESS 65)
QT4_WRAP_CPP(MOC_OUTPUT_FILES ${QTCOIN_MOCS} OPTIONS -DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED -DBOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION -DBOOST_LEXICAL_CAST_INCLUDED -DBOOST_NEXT_PRIOR_HPP_INCLUDED -DBOOST_TYPE_TRAITS_HPP -D_SYS_SYSMACROS_H_OUTER) #for boost 1.65.1
endif(Boost_MINOR_VERSION LESS 65)


check_include_file(X11/Xlib.h HAVE_X11_XLIB_H)

# build sources, moc'd sources, and rcc'd sources
Expand Down

0 comments on commit f3ae1f5

Please sign in to comment.