Clement Deschamps
Builds for 1 pipeline passed in 6 minutes 0 seconds

Modified CMakeLists.txt

'examples' and 'docs' folders are now created in a logic place
(<prefix>/share/greensocs/).
... ... @@ -4,6 +4,11 @@ project (GREENLIB)
find_package(PythonInterp 2.7 REQUIRED)
find_package(PythonLibs 2.7 REQUIRED)
include(GNUInstallDirs)
set(GreenLib_EXAMPLES_DIR ${CMAKE_INSTALL_DATADIR}/greensocs/examples)
set(GreenLib_DOCS_DIR ${CMAKE_INSTALL_DATADIR}/greensocs/docs)
include(FeatureSummary)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
... ... @@ -86,17 +91,6 @@ set(GreenSocs_INCLUDE_DIRS "include")
set(GreenSocs_LIBRARY_DIRS ../../../lib)
set(GreenSocs_LIBRARIES pthread)
# License
install(FILES greencontrol/LICENSE
DESTINATION .
)
install(DIRECTORY include/
DESTINATION include
)
# GreenControl
configure_file(
... ... @@ -113,17 +107,17 @@ install(DIRECTORY greencontrol/include/
)
install(DIRECTORY greencontrol/examples/
DESTINATION examples/greencontrol
DESTINATION ${GreenLib_EXAMPLES_DIR}/greencontrol
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY greencontrol/docs/
DESTINATION docs/greencontrol
DESTINATION ${GreenLib_DOCS_DIR}/greencontrol
PATTERN ".svn" EXCLUDE
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Makefile.defs
DESTINATION examples/greencontrol
DESTINATION ${GreenLib_EXAMPLES_DIR}/greencontrol
)
... ... @@ -137,17 +131,17 @@ install(DIRECTORY greensocket/include/
)
install(DIRECTORY greensocket/examples/
DESTINATION examples/greensocket
DESTINATION ${GreenLib_EXAMPLES_DIR}/greensocket
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY greensocket/doc/ # TODO: doc or docs?
DESTINATION docs/greensocket
DESTINATION ${GreenLib_DOCS_DIR}/greensocket
PATTERN ".svn" EXCLUDE
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Makefile.defs
DESTINATION examples/greensocket
DESTINATION ${GreenLib_EXAMPLES_DIR}/greensocket
)
... ... @@ -161,17 +155,17 @@ install(DIRECTORY gsgpsocket/include/
)
install(DIRECTORY gsgpsocket/examples/
DESTINATION examples/gsgpsocket
DESTINATION ${GreenLib_EXAMPLES_DIR}/gsgpsocket
PATTERN ".svn" EXCLUDE
)
# install(DIRECTORY gsgpsocket/doc/ # TODO: doc or docs?
# DESTINATION docs/gsgpsocket
# DESTINATION ${GreenLib_DOCS_DIR}/gsgpsocket
# PATTERN ".svn" EXCLUDE
# )
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Makefile.defs
DESTINATION examples/gsgpsocket
DESTINATION ${GreenLib_EXAMPLES_DIR}/gsgpsocket
)
... ... @@ -185,17 +179,17 @@ install(DIRECTORY greenrouter/include/
)
install(DIRECTORY greenrouter/examples/
DESTINATION examples/greenrouter
DESTINATION ${GreenLib_EXAMPLES_DIR}/greenrouter
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY greenrouter/docs/ # TODO: doc or docs?
DESTINATION docs/greenrouter
DESTINATION ${GreenLib_DOCS_DIR}/greenrouter
PATTERN ".svn" EXCLUDE
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Makefile.defs
DESTINATION examples/greenrouter
DESTINATION ${GreenLib_EXAMPLES_DIR}/greenrouter
)
# GreenSignalSocket
... ... @@ -208,17 +202,17 @@ install(DIRECTORY greensignalsocket/include/
)
install(DIRECTORY greensignalsocket/examples/
DESTINATION examples/greensignalsocket
DESTINATION ${GreenLib_EXAMPLES_DIR}/greensignalsocket
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY greensignalsocket/docs/ # TODO: doc or docs?
DESTINATION docs/greensignalsocket
DESTINATION ${GreenLib_DOCS_DIR}/greensignalsocket
PATTERN ".svn" EXCLUDE
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/Makefile.defs
DESTINATION examples/greensignalsocket
DESTINATION ${GreenLib_EXAMPLES_DIR}/greensignalsocket
)
# Greenreg
... ... @@ -232,12 +226,12 @@ install(DIRECTORY greenreg/include/
)
install(DIRECTORY greenreg/examples/
DESTINATION examples/greenreg
DESTINATION ${GreenLib_EXAMPLES_DIR}/greenreg
PATTERN ".svn" EXCLUDE
)
install(DIRECTORY greenreg/doc/ # TODO: doc or docs?
DESTINATION docs/greenreg
DESTINATION ${GreenLib_DOCS_DIR}/greenreg
PATTERN ".svn" EXCLUDE
)
... ... @@ -250,11 +244,11 @@ install(DIRECTORY greenmessage/include/
)
install(DIRECTORY greenmessage/examples/
DESTINATION examples/greenmessage
DESTINATION ${GreenLib_EXAMPLES_DIR}/greenmessage
)
install(DIRECTORY greenmessage/docs/
DESTINATION docs/greenmessage
DESTINATION ${GreenLib_DOCS_DIR}/greenmessage
)
# Greenscript
... ... @@ -266,11 +260,11 @@ install(DIRECTORY greenscript/include/
)
install(DIRECTORY greenscript/examples/
DESTINATION examples/greenscript
DESTINATION ${GreenLib_EXAMPLES_DIR}/greenscript
)
install(DIRECTORY greenscript/docs/
DESTINATION docs/greenscript
DESTINATION ${GreenLib_DOCS_DIR}/greenscript
)
# Greenmemory
... ... @@ -282,11 +276,11 @@ install(DIRECTORY greenmemory/include/
)
install(DIRECTORY greenmemory/examples/
DESTINATION examples/memory
DESTINATION ${GreenLib_EXAMPLES_DIR}/memory
)
install(DIRECTORY greenmemory/docs/
DESTINATION docs/greenmemory
DESTINATION ${GreenLib_DOCS_DIR}/greenmemory
)
# Greensignalbus
... ... @@ -298,7 +292,7 @@ install(DIRECTORY greensignalbus/include/
)
install(DIRECTORY greensignalbus/examples/
DESTINATION examples/signalbus
DESTINATION ${GreenLib_EXAMPLES_DIR}/signalbus
)
# GreenSerialSocket
... ... @@ -311,7 +305,7 @@ install(DIRECTORY greenserialsocket/include/
)
install(DIRECTORY greenserialsocket/docs/
DESTINATION docs/greenserialsocket
DESTINATION ${GreenLib_DOCS_DIR}/greenserialsocket
)
# Greenthreads
... ... @@ -323,11 +317,11 @@ install(DIRECTORY greenthreads/include/
)
install(DIRECTORY greenthreads/examples/
DESTINATION examples/threads
DESTINATION ${GreenLib_EXAMPLES_DIR}/threads
)
install(DIRECTORY greenthreads/docs/
DESTINATION docs/greenthreads
DESTINATION ${GreenLib_DOCS_DIR}/greenthreads
)
# Include directory must use first the repository headers!
... ...