-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (29 loc) · 1.27 KB
/
CMakeLists.txt
File metadata and controls
44 lines (29 loc) · 1.27 KB
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_minimum_required(VERSION 3.1.0 FATAL_ERROR)
project(op VERSION 0.1 LANGUAGES CXX)
###############################################################################
## target definitions #########################################################
###############################################################################
file(GLOB SOURCES
main.cpp
inc/*.h
src/*.cpp)
message("Following sources found:")
foreach(a ${SOURCES})
message("${a}")
endforeach()
#Generate the shared library from the sources
add_executable(NVI ${SOURCES})
#Set Debug or Release
set(CMAKE_BUILD_TYPE Debug)
###############################################################################
## compiler definitions########################################################
###############################################################################
#enable c++11 and set it required
set_property(TARGET NVI PROPERTY CXX_STANDARD 11)
set_property(TARGET NVI PROPERTY CXX_STANDARD_REQUIRED ON)
###############################################################################
## dependencies ###############################################################
###############################################################################
include_directories()
link_directories()
target_link_libraries(NVI )