1
cmake_minimum_required(VERSION 2.6)
6
set(wesl_VERSION_MAJOR 0)
7
set(wesl_VERSION_MINOR 4)
8
set(wesl_VERSION_PATCH 5)
10
set(WESL_SRC src/wesl/elements/command.cpp
11
src/wesl/elements/script.cpp
12
src/wesl/elements/element.cpp
13
src/wesl/elements/variablerecall.cpp
14
src/wesl/elements/text.cpp
15
src/wesl/processor.cpp
16
src/wesl/exceptions/exception.cpp
17
src/wesl/exceptions/parsingerror.cpp
18
src/wesl/exceptions/syntaxerror.cpp
19
src/wesl/exceptions/fileerror.cpp
21
src/wesl/utils/citerator.cpp
22
src/wesl/types/object.cpp
23
src/wesl/types/integer.cpp
24
src/wesl/types/float.cpp
25
src/wesl/process/popen2.cpp
26
src/wesl/process/process.cpp
27
src/wesl/utils/regexitermatch.cpp
29
src/wesl/elementstack.cpp
30
src/wesl/exceptions/processingerror.cpp
31
src/wesl/types/void.cpp
32
src/wesl/elements/function.cpp
33
src/wesl/elements/returnstatement.cpp
34
src/wesl/exceptions/returnexception.cpp
35
src/wesl/elements/subroutinedefinition.cpp
36
src/wesl/elements/objectwrapper.cpp
37
src/wesl/elements/subroutine.cpp
38
src/wesl/elements/macro.cpp
39
src/wesl/elements/printable.cpp
40
src/wesl/elements/resolvable.cpp
41
src/wesl/elements/callable.cpp)
43
set(Boost_USE_STATIC_LIBS TRUE)
44
find_package(Boost 1.40 REQUIRED COMPONENTS filesystem regex
47
find_package(PkgConfig REQUIRED)
48
pkg_search_module(YAMLCPP REQUIRED yaml-cpp)
50
include_directories(${Boost_INCLUDE_DIRS}
51
${YAMLCPP_INCLUDE_DIRS}
52
../libstx-exparser/src)
54
add_library(wesl STATIC ${WESL_SRC})