2011/4/23 YangXi <[email protected]>:
> In my program, I have several pictures and plain-text data files. Usually in
> a unix system, they should be placed on /usr/share/my_program/some_place.
> How could I define those files in CMakeLists, and make their location known
> by the program?
> Thanks!
first define the prefix in CMake so you can use it in your C program.
add_definitions(-DPREFIX="${CMAKE_INSTALL_PREFIX}")
the C program can then add the rest of the path "share/my_program/some_place"
You'll also want to install this file so its copied on "make install"
--
- Campbell
_______________________________________________
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