Skip to content

Commit

Permalink
Integrate CMake/common as a git submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Dumusc committed May 22, 2017
1 parent 3b62a36 commit bb88876
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 342 deletions.
2 changes: 0 additions & 2 deletions .gitexternals

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Makefile
CMakeLists.txt.user*
CMake/common
build/
___*
4 changes: 4 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[submodule "CMake/common"]
path = CMake/common
url = https://github.com/Eyescale/CMake
shallow = true
9 changes: 0 additions & 9 deletions CMake/CPackConfig.cmake

This file was deleted.

325 changes: 0 additions & 325 deletions CMake/GitExternal.cmake

This file was deleted.

1 change: 1 addition & 0 deletions CMake/common
Submodule common added at bff2a1
15 changes: 10 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Copyright (c) 2015-2016, Human Brain Project
# Copyright (c) 2015-2017, Human Brain Project
# Juan Hernando <jhernando@fi.upm.es>
# Raphael Dumusc <raphael.dumusc@epfl.ch>
#
# This file is part of Servus <https://github.com/HBPVIS/Servus>
#
Expand All @@ -20,9 +21,10 @@ cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(Servus VERSION 1.5.1)
set(Servus_VERSION_ABI 5)

list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common)
include(GitExternal)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/CMake/common)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/CMake/common/Common.cmake)
message(FATAL_ERROR "CMake/common missing, run: git submodule update --init")
endif()

set(SERVUS_DESCRIPTION
"C++ network oriented utilities including a zeroconf implementation")
Expand Down Expand Up @@ -51,7 +53,10 @@ add_subdirectory(servus)
add_subdirectory(apps)
add_subdirectory(tests)

include(CPackConfig)
set(CPACK_PACKAGE_DESCRIPTION_FILE "${PROJECT_SOURCE_DIR}/README.md")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "libavahi-client3, avahi-daemon")
include(CommonCPack)

set(COMMON_PROJECT_DOMAIN eu.humanbrainproject)
set(DOXYGEN_EXTRA_INPUT ${PROJECT_SOURCE_DIR}/README.md)
set(DOXYGEN_MAINPAGE_MD README.md)
Expand Down

0 comments on commit bb88876

Please sign in to comment.