Commit 1b934d69 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by ostasse@laas.fr
Browse files

[CMake] put headers in library definition

parent b96cd1a5
...@@ -76,8 +76,7 @@ ENDIF (NOT (\"${CMAKE_VERBOSITY_LEVEL}\" STREQUAL \"\")) ...@@ -76,8 +76,7 @@ ENDIF (NOT (\"${CMAKE_VERBOSITY_LEVEL}\" STREQUAL \"\"))
#include_directories(${Boost_INCLUDE_DIRS}) #include_directories(${Boost_INCLUDE_DIRS})
#link_directories(${Boost_LIBRARY_DIRS}) #link_directories(${Boost_LIBRARY_DIRS})
ADD_LIBRARY(${LIBRARY_NAME} SET(${PROJECT_NAME}_SOURCES
SHARED
src/debug/debug.cpp src/debug/debug.cpp
src/debug/real-time-logger.cpp src/debug/real-time-logger.cpp
src/debug/logger.cpp src/debug/logger.cpp
...@@ -154,6 +153,9 @@ SET(${PROJECT_NAME}_HEADERS ...@@ -154,6 +153,9 @@ SET(${PROJECT_NAME}_HEADERS
include/dynamic-graph/logger.h include/dynamic-graph/logger.h
) )
ADD_LIBRARY(${LIBRARY_NAME}
SHARED ${${PROJECT_NAME}_SOURCES} ${${PROJECT_NAME}_HEADERS})
SET(PUBLIC_HEADER ${${PROJECT_NAME}_HEADERS}) SET(PUBLIC_HEADER ${${PROJECT_NAME}_HEADERS})
INSTALL(TARGETS ${PROJECT_NAME} INSTALL(TARGETS ${PROJECT_NAME}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment