Commit 13a30d7c authored by Michael Chen's avatar Michael Chen

Initial commit

parents
# Prerequisites
*.d
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf
# CMake-related stuffs
CMakeCache.txt
CMakeFiles
CMakeScripts
Testing
Makefile
cmake_install.cmake
install_manifest.txt
compile_commands.json
CTestTestfile.cmake
# Dist directory
dist/*
!dist/.gitkeep
\ No newline at end of file
cmake_minimum_required(VERSION 2.6)
project(Hello)
set(EXECUTABLE_OUTPUT_PATH dist)
include_directories(${Hello_SOURCE_DIR}/src)
set(Hello_Sources ${Hello_SOURCE_DIR}/src/hello.c)
add_executable(hello ${Hello_Sources})
\ No newline at end of file
# Nested Hello World in CMake
A tiny project to demo how to use CMake.
## Copyright
2018, Michael Chen, licensed under Apache 2.0
\ No newline at end of file
#include <stdio.h>
int main(void)
{
printf("Hello World\n");
return 0;
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment