author | František Kučera <franta-hg@frantovo.cz> |
Wed, 30 Oct 2019 16:47:43 +0100 | |
branch | v_0 |
changeset 16 | 140dd584af24 |
parent 15 | 638f581903d0 |
child 25 | 58de33c1af03 |
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 |
|
15
638f581903d0
fix license version: GNU GPLv3
František Kučera <franta-hg@frantovo.cz>
parents:
6
diff
changeset
|
6 |
# the Free Software Foundation, version 3 of the License. |
0 | 7 |
# |
8 |
# This program is distributed in the hope that it will be useful, |
|
9 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 |
# GNU General Public License for more details. |
|
12 |
# |
|
13 |
# You should have received a copy of the GNU General Public License |
|
14 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 |
||
3
0161ea43ce2a
rename: tr-validator → out-nullbyte
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
16 |
set(EXECUTABLE_FILE "relpipe-out-nullbyte") |
0 | 17 |
|
18 |
# Relpipe libraries: |
|
19 |
INCLUDE(FindPkgConfig) |
|
4
12ffbdbb3574
NullByteHandler: produces \0-separated values
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
20 |
pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-cli.cpp) |
0 | 21 |
include_directories(${RELPIPE_LIBS_INCLUDE_DIRS}) |
22 |
link_directories(${RELPIPE_LIBS_LIBRARY_DIRS}) |
|
23 |
||
24 |
# Add ASan AddressSanitizer |
|
25 |
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
|
26 |
set(CMAKE_LINKER_FLAGS_DEBUG "${CMAKE_LINKER_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
|
27 |
# From ASan wiki: "To get nicer stack traces in error messages add -fno-omit-frame-pointer." |
|
28 |
||
29 |
# Executable output: |
|
30 |
add_executable( |
|
31 |
${EXECUTABLE_FILE} |
|
4
12ffbdbb3574
NullByteHandler: produces \0-separated values
František Kučera <franta-hg@frantovo.cz>
parents:
3
diff
changeset
|
32 |
NullByteHandler.h |
3
0161ea43ce2a
rename: tr-validator → out-nullbyte
František Kučera <franta-hg@frantovo.cz>
parents:
0
diff
changeset
|
33 |
relpipe-out-nullbyte.cpp |
0 | 34 |
) |
35 |
||
36 |
# Link libraries: |
|
37 |
target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES}) |
|
6 | 38 |
set_property(TARGET ${EXECUTABLE_FILE} PROPERTY INSTALL_RPATH_USE_LINK_PATH TRUE) |
39 |
||
40 |
install(TARGETS ${EXECUTABLE_FILE} DESTINATION bin) |