14 lines
349 B
CMake
14 lines
349 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
## Use the variable PROJECT_NAME for changing the target name
|
|
set( PROJECT_NAME "HelloWorld" )
|
|
|
|
## Set our project name
|
|
project(${PROJECT_NAME})
|
|
|
|
## Use all the *.cpp files we found under this folder for the project
|
|
FILE(GLOB SRCS "*.cpp" "*.c")
|
|
|
|
## Define the executable
|
|
add_executable(${PROJECT_NAME} ${SRCS})
|