author | František Kučera <franta-hg@frantovo.cz> |
Mon, 10 Dec 2018 00:06:54 +0100 | |
branch | v_0 |
changeset 6 | 0f28565508ca |
parent 3 | 8731263d44f1 |
child 7 | aebaf590a838 |
permissions | -rw-r--r-- |
0 | 1 |
# Relational pipes |
2 |
# Copyright © 2018 František Kučera (Frantovo.cz, GlobalCode.info) |
|
3 |
# |
|
4 |
# This program is free software: you can redistribute it and/or modify |
|
5 |
# it under the terms of the GNU General Public License as published by |
|
6 |
# the Free Software Foundation, either version 3 of the License, or |
|
7 |
# (at your option) any later version. |
|
8 |
# |
|
9 |
# This program is distributed in the hope that it will be useful, |
|
10 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
# GNU General Public License for more details. |
|
13 |
# |
|
14 |
# You should have received a copy of the GNU General Public License |
|
15 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
16 |
||
6
0f28565508ca
create project (clone of tr-validator)
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
17 |
set(EXECUTABLE_FILE "relpipe-tr-grep") |
0 | 18 |
|
19 |
# Relpipe libraries: |
|
20 |
INCLUDE(FindPkgConfig) |
|
21 |
pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-writer.cpp relpipe-lib-cli.cpp) |
|
22 |
include_directories(${RELPIPE_LIBS_INCLUDE_DIRS}) |
|
23 |
link_directories(${RELPIPE_LIBS_LIBRARY_DIRS}) |
|
24 |
||
25 |
# Add ASan AddressSanitizer |
|
26 |
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
|
27 |
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
|
28 |
# From ASan wiki: "To get nicer stack traces in error messages add -fno-omit-frame-pointer." |
|
29 |
||
30 |
# Executable output: |
|
31 |
add_executable( |
|
32 |
${EXECUTABLE_FILE} |
|
3
8731263d44f1
PassthroughHandler (string-based version)
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
33 |
PassthroughHandler.h |
6
0f28565508ca
create project (clone of tr-validator)
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
34 |
relpipe-tr-grep.cpp |
0 | 35 |
) |
36 |
||
37 |
# Link libraries: |
|
38 |
target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES}) |