-
Notifications
You must be signed in to change notification settings - Fork 0
/
project.rb
45 lines (41 loc) · 1.02 KB
/
project.rb
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
PACKAGE_FOO = {
:name => "Foo", # must match a CMake Find*.cmake
:components => "ComponentA ComponentB",
:required => true,
:optional_cmake => ""
};
PROJECT =
{
:name => "my_project",
:cmake_version => "2.6",
:targets =>
[{
:name => "my_lib",
:type => :shared, # (:static, :shared, :executable)
:install => true,
:sources => "src_path", # Source root
:common =>
{
:packages => [PACKAGE_FOO], # list of package dictionaries
:definitions => [], # string-list of extra compiler definitions
:include_dirs => [], # string-list of extra include dirs
:link_dirs => [], # string-list of extra link-dirs
:libs => [] # string-list of extra libs
},
# :apple, :linux and :windows platforms are optional
:apple =>
{
:packages => [],
:definitions => [],
:include_dirs => [],
:link_dirs => []
},
:linux =>
{
:packages => [],
:definitions => [],
:include_dirs => [],
:link_dirs => []
}
}]
}