Skip to content

Instantly share code, notes, and snippets.

@ratanparai
Last active April 18, 2017 00:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ratanparai/97bbe1c5a7fab813b2fdfbb73cbf5a50 to your computer and use it in GitHub Desktop.
Save ratanparai/97bbe1c5a7fab813b2fdfbb73cbf5a50 to your computer and use it in GitHub Desktop.
# Specify minimum version of CMake required to compile the code
cmake_minimum_required(VERSION 3.5)
# Project name
project(hello_world)
# Set source files
set(SOURCE_FILES hello.c)
# Set the name of the executable file name after CMake compile
# the code
add_executable(hello ${SOURCE_FILES})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment