-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJamroot
58 lines (46 loc) · 1.37 KB
/
Jamroot
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
import os ;
# Configure doctest
local DOCTEST_INCLUDE_DIR = [ os.environ DOCTEST_INCLUDE_DIR ] ;
# Configure FMT
local FMT_INCLUDE_DIR = [ os.environ FMT_INCLUDE_DIR ] ;
# Configure Lyra
local LYRA_INCLUDE_DIR = [ os.environ LYRA_INCLUDE_DIR ] ;
# Configure pybind11
local PYBIND11_INCLUDE_DIR = [ os.environ PYBIND11_INCLUDE_DIR ] ;
ECHO "DOCTEST_INCLUDE_DIR = $(DOCTEST_INCLUDE_DIR)" ;
ECHO "FMT_INCLUDE_DIR = $(FMT_INCLUDE_DIR)" ;
ECHO "LYRA_INCLUDE_DIR = $(LYRA_INCLUDE_DIR)" ;
ECHO "PYBIND11_INCLUDE_DIR = $(PYBIND11_INCLUDE_DIR)" ;
project aitools
: requirements
<include>include
<include>$(DOCTEST_INCLUDE_DIR)
<include>$(FMT_INCLUDE_DIR)
<include>$(LYRA_INCLUDE_DIR)
<include>$(PYBIND11_INCLUDE_DIR)
<define>FMT_HEADER_ONLY
<toolset>clang:<cxxflags>"-std=c++17" <warnings>all
<toolset>clang:<linkflags>-ltbb
<toolset>clang:<linkflags>-lgomp
<toolset>clang:<cxxflags>-fopenmp=libomp
<toolset>gcc:<cxxflags>-std=c++17
<toolset>gcc:<linkflags>-ltbb
;
lib aitoolslib
:
src/decision_trees.cpp
src/logger.cpp
src/probabilistic_circuits.cpp
src/utilities.cpp
:
;
# generate tests for all .cpp files
rule test_all
{
local all_rules = ;
for local fileb in [ glob *.cpp ]
{
all_rules += [ run $(fileb) ] ;
}
return $(all_rules) ;
}