Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // main.c
- #include <stdio.h>
- #include "config.h"
- int main()
- {
- printf("Hello, world!n");
- printf("image = "%s".n", DATADIR "/tux.png");
- return 0;
- }
- #cmakedefine DATADIR "@DATADIR@"
- CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
- PROJECT(sample)
- SET(sample_VERSION_MAJOR 0)
- SET(sample_VERSION_MINOR 1)
- SET(DATADIR "${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}")
- CONFIGURE_FILE("${CMAKE_SOURCE_DIR}/config.h.in" "${CMAKE_BINARY_DIR}/config.h")
- INCLUDE_DIRECTORIES("${CMAKE_BINARY_DIR}")
- ADD_EXECUTABLE(sample main.c)
- INSTALL(TARGETS sample DESTINATION bin)
- INSTALL(FILES tux.png DESTINATION "share/${PROJECT_NAME}")
- #define DATADIR "/usr/share/sample"
- dh_make --createorig -s
- dpkg-buildpackage -b
- $ cat /var/lib/dpkg/info/file.list
- /.
- /usr
- /usr/share
- /usr/share/bug
- /usr/share/bug/file
- /usr/share/bug/file/presubj
- /usr/share/bug/file/control
- /usr/share/doc
- /usr/share/doc/file
- /usr/share/doc/file/README.Debian
- /usr/share/doc/file/copyright
- /usr/share/doc/file/README.gz
- /usr/share/man
- /usr/share/man/man1
- /usr/share/man/man1/file.1.gz
- /usr/bin
- /usr/bin/file
- /usr/share/doc/file/changelog.Debian.gz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement