equal
deleted
inserted
replaced
16 |
16 |
17 set(EXECUTABLE_FILE "relpipe-out-nullbyte") |
17 set(EXECUTABLE_FILE "relpipe-out-nullbyte") |
18 |
18 |
19 # Relpipe libraries: |
19 # Relpipe libraries: |
20 INCLUDE(FindPkgConfig) |
20 INCLUDE(FindPkgConfig) |
21 pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-writer.cpp relpipe-lib-cli.cpp) |
21 pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-cli.cpp) |
22 include_directories(${RELPIPE_LIBS_INCLUDE_DIRS}) |
22 include_directories(${RELPIPE_LIBS_INCLUDE_DIRS}) |
23 link_directories(${RELPIPE_LIBS_LIBRARY_DIRS}) |
23 link_directories(${RELPIPE_LIBS_LIBRARY_DIRS}) |
24 |
24 |
25 # Add ASan AddressSanitizer |
25 # Add ASan AddressSanitizer |
26 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -fno-omit-frame-pointer -fsanitize=address") |
26 set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_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." |
28 # From ASan wiki: "To get nicer stack traces in error messages add -fno-omit-frame-pointer." |
29 |
29 |
30 # Executable output: |
30 # Executable output: |
31 add_executable( |
31 add_executable( |
32 ${EXECUTABLE_FILE} |
32 ${EXECUTABLE_FILE} |
|
33 NullByteHandler.h |
33 relpipe-out-nullbyte.cpp |
34 relpipe-out-nullbyte.cpp |
34 ) |
35 ) |
35 |
36 |
36 # Link libraries: |
37 # Link libraries: |
37 target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES}) |
38 target_link_libraries(${EXECUTABLE_FILE} ${RELPIPE_LIBS_LIBRARIES}) |