Hello,

I am trying to use both gtk2 and gtk3 in one project.
The structure of the project (with gtk2 only) is like this:

core
  core gtk2 UI

Now I tried to add a new user interface based on gtk3.

core
  core gtk2 UI
  core gtk3 UI

The file "CMakeLists.txt" of "core gtk3 UI" looks basically like this:

   find_package(PkgConfig REQUIRED)
   pkg_check_modules(GTK3 REQUIRED gtk+-3.0)

   file(GLOB gtk3_ui_source_files *.c)
   add_library(gtk3_core SHARED ${gtk3_ui_source_files})
   target_link_libraries(gtk3_core ${GTK3_LIBRARIES})

My Problem is, that cmake tries to include gtk3 headers in my gtk2 modules. And gtk2 does not compile anymore.
Why?



Markus

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to