[CMake] debugging symbols in project
Owen Hogarth II
gurenchan at gmail.com
Sat Jan 2 16:23:27 EST 2016
I have a simple cmake project that I am trying to test with gdb but I am
having trouble. GDB is reporting now debugging symbols.
CMAKE_MINIMUM_REQUIRED(VERSION 2.8 FATAL_ERROR)
PROJECT(core_e)
SET(CMAKE_MACOSX_RPATH 1)
set(CMAKE_C_FLAGS "-g -Wall")
FIND_PACKAGE(OpenGL REQUIRED)
SET(HEADER_FILES ${CMAKE_CURRENT_SOURCE_DIR}/headers/core_e.h)
SET(SRC_FILES ${CMAKE_CURRENT_SOURCE_DIR}/core_e.c)
SET(TARGET_LIBS glfw ${OPENGL_LIBRARIES})
SET(TARGET_INC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/headers" )
ADD_LIBRARY(core_e SHARED ${SRC_FILES} ${HEADER_FILES})
TARGET_LINK_LIBRARIES(core_en\ ${TARGET_LIBS})
TARGET_INCLUDE_DIRECTORIES(core_e PUBLIC ${TARGET_INC_DIR})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160103/306e60df/attachment.html>
More information about the CMake
mailing list