> Thanks. The way I understand this is that now instead of
>
> include_directories(${GTKMM_INCLUDE_DIRS})
>
> i would write something like
>
> include_directories(${GTKMM_INCLUDE_DIRS})
> # and at the end of the file
> set(INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} PARENT_SCOPE)
>
> ? I'd do the same with the LINK_DIRECTORIES, LINK_LIBRARIES property and
> for all other libraries?
Don't set LINK_DIRECTORIES and LINK_LIBRARIES. When you are a beginner
probably every usage of them is wrong.
You simply do
TARGET_LINK_LIBRARIES(mytarget ${GTK_LIBRARIES}) (or however that is called)
The only thing you need to "export upwards" in this case would be the
GTK_LIBRARIES variable.
Eike
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake