-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (43 loc) · 1.87 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
###################################################################################
#
# Copyright (c) 2016, webvariants GmbH, http://www.webvariants.de
#
# This file is released under the terms of the MIT license. You can find the
# complete text in the attached LICENSE file or online at:
#
# http://www.opensource.org/licenses/mit-license.php
#
# @author: Tino Rusch ([email protected])
#
###################################################################################
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(susi-shell)
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)
find_package(Boost REQUIRED COMPONENTS system program_options)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/submodules/libsusi)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/submodules/libsusi/include)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/submodules/libsusi/submodules/libbson/include)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/submodules/tiny-process-library)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/submodules/tiny-process-library)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/include )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall --std=c++11 -O3" )
file( GLOB SRCFILES ${CMAKE_CURRENT_SOURCE_DIR}/sources/*.cpp)
add_executable( ${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/main.cpp ${SRCFILES})
target_link_libraries(${PROJECT_NAME}
${CMAKE_THREAD_LIBS_INIT}
${Boost_LIBRARIES}
${OPENSSL_LIBRARIES}
bson
susi
tiny-process-library )
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION "/usr/local/bin")
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/ DESTINATION /usr/local/include)
set(CPACK_GENERATOR "DEB")
set(CPACK_SET_DESTDIR ON)
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "Tino Rusch")
set(CPACK_PACKAGE_VERSION "0.2.0")
set(CPACK_PACKAGE_VERSION_MAJOR "0")
set(CPACK_PACKAGE_VERSION_MINOR "2")
set(CPACK_PACKAGE_VERSION_PATCH "0")
include(CPack)