Commit aa0f4a81 authored by Nicolas Mellado's avatar Nicolas Mellado

[Shelves] Handle header only

parent 9dbaac20
......@@ -2,6 +2,8 @@ project(Patate)
cmake_minimum_required(VERSION 2.8.10)
set(PATATE_ROOT ${CMAKE_CURRENT_SOURCE_DIR})
# guard against in-source builds (source: Eigen)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
......@@ -34,10 +36,10 @@ endif()
# Add core code source, so it is visible in dev environements #
################################################################################
add_subdirectory(Patate/Grenaille EXCLUDE_FROM_ALL)
add_subdirectory(Patate/Vitelotte EXCLUDE_FROM_ALL)
add_subdirectory(Patate/common)
add_subdirectory(Patate/Shelves EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Patate/Grenaille EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Patate/Vitelotte EXCLUDE_FROM_ALL)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Patate/common)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Patate/Shelves EXCLUDE_FROM_ALL)
################################################################################
......
......@@ -10,5 +10,11 @@ FILE ( GLOB SHELVES_IMPL
${CMAKE_CURRENT_SOURCE_DIR}/src/*.hpp
)
message("ROTO : ${PATATE_ROOT}")
add_library (Shelves OBJECT ${SHELVES_HEADERS} ${SHELVES_IMPL})
set_target_properties(Shelves PROPERTIES LINKER_LANGUAGE C++)
target_include_directories(Shelves PUBLIC
$<BUILD_INTERFACE:${PATATE_ROOT}>
$<INSTALL_INTERFACE:include> # <prefix>/include/mylib
)
Markdown is supported
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