Skip to content

Error in QT when include target_link_libraries(cloud_analizer PUBLIC CGAL::CGAL_Basic_viewer) in CMakeLists.txt #8572

Answered by lrineau
DarkSun812 asked this question in Q&A
Discussion options

You must be logged in to vote

That is because CGAL::CGAL_Basic_viewer enforces the definition of the preprocessor macro QT_NO_KEYWORDS.

That means you need to replace:

  • slots by Q_SLOTS
  • signals by QSIGNALS,
  • emit by Q_EMIT, and
  • foreach by Q_FOREACH.

... I wonder if that should be considered as a bug for CGAL. We should not enforce our choices to CGAL users.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@DarkSun812
Comment options

@lrineau
Comment options

@DarkSun812
Comment options

@lrineau
Comment options

@lrineau
Comment options

Answer selected by DarkSun812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants