-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
90 lines (73 loc) · 1.68 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#Minimum cmake version asked
cmake_minimum_required(VERSION 2.8)
#Project Name
project(Mieos-Project-Organizer-Example)
#Use C++11
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
#Other Flags you want to add to the project
#For instance here, allow pthread
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
#Options
#option(myOption "myOption" ON)
##########
#Packages#
##########
######
#Srcs#
######
##
#Pkg config allow you to find unconventionnal packages : uncomment the next line if you need it
##
#find_package(PkgConfig REQUIRED)
##
#Other packages you want to include with the classic method
##
#find_package(myPackage REQUIRED)
##
#Other packages you want to include with PkgConfig
##
#pkg_search_module(MyPackage REQUIRED myPackagev42)
##
#External packages
##
add_subdirectory(external)
##########
#Includes#
##########
##
#Classic packages
##
#if( MYPACKAGE_FOUND )
# include_directories(${MYPACKAGE_INCLUDE_DIRS})
#endif()
##
#External packages
##
include_directories(
external/externalLibraryExample/include
)
#LIBS
set(ALL_LIBS
MIEOSPO_EXTLIBEXAMPLE_LIB
)
###################
#Generated helpers#
###################
#Generated helpers such as paths and others stuffs that can be used in cpp afterward
#Usefull when you need an absolute path
add_subdirectory(helpers)
include_directories(${CMAKE_BINARY_DIR}/generated/helpers )
#########
#Outputs#
#########
#Set outputs dir
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
################
#Subdirectories#
################
#internalLibraryExample
add_subdirectory(src/internalLibraryExample)
include_directories(include/internalLibraryExample)
#Tests
add_subdirectory(src/tests)