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})
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake