Skip to content

Commit

Permalink
Added project stub.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarum9in committed Jun 7, 2015
1 parent cbee6f6 commit 1353155
Show file tree
Hide file tree
Showing 8 changed files with 61 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[submodule "third_party/bunsan_cmake"]
path = third_party/bunsan_cmake
url = git://github.com/bunsanorg/bunsan_cmake.git
[submodule "third_party/bunsan_testing"]
path = third_party/bunsan_testing
url = git://github.com/bunsanorg/bunsan_testing.git
[submodule "third_party/bunsan_common"]
path = third_party/bunsan_common
url = git://github.com/bunsanorg/bunsan_common.git
[submodule "third_party/bunsan_protobuf"]
path = third_party/bunsan_protobuf
url = git://github.com/bunsanorg/bunsan_protobuf.git
[submodule "third_party/bunsan_web"]
path = third_party/bunsan_web
url = git://github.com/bunsanorg/bunsan_web.git
40 changes: 40 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
cmake_minimum_required(VERSION 3.0)

include(${CMAKE_SOURCE_DIR}/system-config.cmake OPTIONAL)

project(hit1331_diploma)

add_subdirectory(third_party/bunsan_cmake)
add_subdirectory(third_party/bunsan_testing)
add_subdirectory(third_party/bunsan_common)
add_subdirectory(third_party/bunsan_protobuf)
add_subdirectory(third_party/bunsan_web)

if(BunsanCMakeBuiltin)
BunsanCMakeLoad()
else()
find_package(BunsanCMake CONFIG REQUIRED)
endif()

bunsan_add_protobuf_cxx_library(
TARGET ${PROJECT_NAME}_pb
PROTOS
LIBRARIES ${bunsan_common_LIBRARIES}
INCLUDE_DIRECTORIES ${bunsan_common_INCLUDE_DIRS}
INSTALL
)

bunsan_add_library(${PROJECT_NAME}
)
bunsan_use_target(${PROJECT_NAME} ${PROJECT_NAME}_pb)
bunsan_use_bunsan_package(${PROJECT_NAME} bunsan_protobuf bunsan_protobuf)

bunsan_add_executable(${PROJECT_NAME}_cli
)
bunsan_use_target(${PROJECT_NAME}_cli ${PROJECT_NAME})

bunsan_install_headers()
bunsan_install_targets(${PROJECT_NAME} ${PROJECT_NAME}_cli)
bunsan_install_project()

bunsan_include_tests()
1 change: 1 addition & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bunsan_tests_project()
1 change: 1 addition & 0 deletions third_party/bunsan_cmake
Submodule bunsan_cmake added at 3abbd0
1 change: 1 addition & 0 deletions third_party/bunsan_common
Submodule bunsan_common added at fb9903
1 change: 1 addition & 0 deletions third_party/bunsan_protobuf
Submodule bunsan_protobuf added at a676b1
1 change: 1 addition & 0 deletions third_party/bunsan_testing
Submodule bunsan_testing added at 6a7ae9
1 change: 1 addition & 0 deletions third_party/bunsan_web
Submodule bunsan_web added at 87c67c

0 comments on commit 1353155

Please sign in to comment.