-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
46 lines (36 loc) · 973 Bytes
/
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
cmake_minimum_required(VERSION 2.8)
project(nao-response-to-name)
find_package(qibuild)
include_directories(include)
## building Logger module
option(LOGGER_IS_REMOTE
"module is compiled as a remote module (ON or OFF)"
OFF)
set(_srcsLogger
src/logmodule_loader.cpp
include/logmodule.hpp
src/logmodule.cpp
)
if(LOGGER_IS_REMOTE)
add_definitions(" -DLOGGER_IS_REMOTE ")
qi_create_bin(logger ${_srcsLogger})
else()
qi_create_lib(logger SHARED ${_srcsLogger} SUBFOLDER Logger)
endif()
qi_use_lib(logger ALCOMMON)
## building Interface module
option(INTERFACE_IS_REMOTE
"module is compiled as a remote module (ON or OFF)"
OFF)
set(_srcsInterface
src/uimodule_loader.cpp
include/uimodule.hpp
src/uimodule.cpp
)
if(INTERFACE_IS_REMOTE)
add_definitions(" -DINTERFACE_IS_REMOTE ")
qi_create_bin(interface ${_srcsInterface})
else()
qi_create_lib(interface SHARED ${_srcsInterface} SUBFOLDER Interface)
endif()
qi_use_lib(interface ALCOMMON)