Debian Codegraph @

tests/elements/cmake/files/cmakehello.tar.gz

raw
1 ./cmakehello/0000755000175200017520000000000013227637750011461 5ustar samsam./cmakehello/config.h.in0000644000175200017520000000005713227636401013476 0ustar samsam#define PACKAGE_STRING "${CMAKE_PROJECT_NAME}"
2 ./cmakehello/src/0000755000175200017520000000000013227637750012250 5ustar samsam./cmakehello/src/main.c0000644000175200017520000000051012450526565013332 0ustar samsam/* Copyright (C) 2006-2014 Free Software Foundation, Inc.
3 This program is free software; the Free Software Foundation
4 gives unlimited permission to copy, distribute and modify it. */
5
6 #include <config.h>
7 #include <stdio.h>
8
9 int
10 main (void)
11 {
12 puts ("Hello World!");
13 puts ("This is " PACKAGE_STRING ".");
14 return 0;
15 }
16 ./cmakehello/src/CMakeLists.txt0000644000175200017520000000020113227637417015001 0ustar samsamadd_executable(hello main.c)
17
18 message("Bindir is ${BINDIR}")
19
20 install(TARGETS hello RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
21 ./cmakehello/CMakeLists.txt0000644000175200017520000000047113227637610014216 0ustar samsamcmake_minimum_required(VERSION 2.6)
22
23 # Note that we need to be explicit that we only require C, if not then CMake
24 # will require a C++ compiler to be present.
25 project(hello C)
26
27 include("GNUInstallDirs")
28
29 configure_file(config.h.in config.h)
30 include_directories(${CMAKE_CURRENT_BINARY_DIR})
31
32 add_subdirectory(src)
33