-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (25 loc) · 1.06 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
################################################################################
# CMakeLists.txt
#
# Example for Project Thrill - http://project-thrill.org
#
# Copyright (C) 2018 Timo Bingmann <tb@panthema.net>
#
# All rights reserved. Published under the BSD-2 license in the LICENSE file.
################################################################################
# require cmake 2.8.0
cmake_minimum_required(VERSION 2.8.0)
# we first give our project a name
project(tutorial-project)
# prohibit in-source builds
if("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
message(SEND_ERROR "In-source builds are not allowed.")
endif("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
# enable warnings (always good)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -W -Wall")
# include Thrill as cmake subproject
add_subdirectory(thrill)
# create and executable and link with Thrill (all flags and includes are added)
add_executable(simple main.cpp)
target_link_libraries(simple thrill)
################################################################################