Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
patate
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
patate
patate
Commits
aa0f4a81
Commit
aa0f4a81
authored
Jun 01, 2018
by
Nicolas Mellado
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Shelves] Handle header only
parent
9dbaac20
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
CMakeLists.txt
CMakeLists.txt
+6
-4
Patate/Shelves/CMakeLists.txt
Patate/Shelves/CMakeLists.txt
+6
-0
No files found.
CMakeLists.txt
View file @
aa0f4a81
...
...
@@ -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
)
################################################################################
...
...
Patate/Shelves/CMakeLists.txt
View file @
aa0f4a81
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment