Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt5 how to add axcontainer(ActiveQt) to CMake Project

Qt5 how to add axcontainer(ActiveQt) to CMake Project

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 1 Posters 3.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vinayan
    wrote on last edited by
    #1

    I am attempting to invoke a c# method from inside a QT project. In a qmake project, I was able to do this using the below line in the .pro file.

    QT      += core gui axcontainer
    

    what should I do to emulate the above in a CMake project?

    V 1 Reply Last reply
    0
    • V vinayan

      I am attempting to invoke a c# method from inside a QT project. In a qmake project, I was able to do this using the below line in the .pro file.

      QT      += core gui axcontainer
      

      what should I do to emulate the above in a CMake project?

      V Offline
      V Offline
      vinayan
      wrote on last edited by
      #2

      Managed to get this working myself by adding the below in cmakelists.txt.

      find_package(Qt5AxContainer REQUIRED)
      include_directories(
          ${Qt5AxContainer_INCLUDE_DIRS}
      )
      add_definitions(${Qt5AxContainer_DEFINITIONS})
      include_directories(${Qt5Widgets_INCLUDES}  ${Qt5AxContainer_INCLUDE_DIRS})
      target_link_libraries(${PROJECT_NAME} ${Qt5AxContainer_LIBRARIES})
      
      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved