summaryrefslogtreecommitdiff
path: root/doc/examples/out-of-source-build/files/OutOfSourceProject/CMakeLists.txt
blob: 287c78371cf732a2bfa3d421da1ab0414cf4bd2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

# Set the minimum version of CMake that can be used
# To find the cmake version run
# $ cmake --version
cmake_minimum_required(VERSION 2.8)

# Set the project name
project (hello_main C)

# Set something so that we can see if main.c was compiled from this cmake
# projcet
set(CMAKE_C_FLAGS "-DFULL_PROJECT")

add_subdirectory(main)