Greeting to all.
In a previous post, I was struggling to generate a Cmake that could actually compile a source code example using pcre. Regardless of the success I've had accomplishing this, the -g flag does not add apparently debug symbols. Here's is an example of my Cmake
Code:
cmake_minimum_required(VERSION 2.8.9)
project(directory_test)
#Include directories.h
#include_directories(include)
# Add sources
file(GLOB SOURCES "src/*.c")
# Creates an executable
add_executable(main ${SOURCES})
# Add external library
target_link_libraries(main -lpcre)
# Add compilation flags
target_compile_options(main PUBLIC -Wall -g -o pcredemo.c)
Any hint or help would be very appreciated.