-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
38 lines (32 loc) · 1.36 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
33
34
35
36
37
38
# ----------------------------------------------------------------------------
# ìèíèìàëüíàÿ âåðñèÿ CMake, ñïîñîáíàÿ ïåðåâàðèòü ýòîò ôàéë
# ----------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8)
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/build)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(project_name ScrollingBufferExample)
project(${project_name})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fPIC -std=c++11")
#----------------------------------------------------------------------------
# èùåì âñå .cpp è .h ôàéëû è äîáàâëÿåì èõ â íàø ïðîåêò
# ----------------------------------------------------------------------------
SET(SOURCE
src/main.cpp
)
SET(HEADERS
src/ScrollingBuffer.h
)
SOURCE_GROUP("Source Files" FILES ${SOURCE})
SOURCE_GROUP("Header Files" FILES ${HEADERS})
# ----------------------------------------------------------------------------
# äîáàâëÿåì include äèðåêòîðèè
# ----------------------------------------------------------------------------
include_directories(${CMAKE_SOURCE_DIR}/src)
# ----------------------------------------------------------------------------
# ñîçäàåì ïðîåêò
# ----------------------------------------------------------------------------
ADD_EXECUTABLE( ${project_name}
${SOURCE}
${HEADERS}
)