Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,292
    • Issues 3,292
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 13
    • Merge Requests 13
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMake
  • CMakeCMake
  • Issues
  • #16186

Closed
Open
Created Jul 05, 2016 by Simon Kindström@SimonKinds

Qt moc not run on generated files

Files which are generated does not get the moc compilation step. It's because of this condition. I confirmed that removing the condition gives the expected outcome. I fail to see the reason behind this check, but due to me being a novice there might be reasons for the condition that I do not understand.

If someone with more experience with CMake and Qt could chime in with thoughts I'll gladly make a PR.

Expected outcome:

Generated files have the moc run on it.

Actual outcome:

Generated files are skipped.

Here's a simple example

CMakeLists.txtgenerate-qobject.shmain.cpp

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None