From e7af5711a05311ac92d0f8c59986fea4032937c9 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 25 Mar 2019 16:47:47 +0100 Subject: [HICN-149] Build packages for applications. Change-Id: Ia13bc4d2711b9897c0afb9b9b43cd04667e41bac Signed-off-by: Mauro Sardara --- apps/http-proxy/CMakeLists.txt | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'apps/http-proxy/CMakeLists.txt') diff --git a/apps/http-proxy/CMakeLists.txt b/apps/http-proxy/CMakeLists.txt index 3d6b9c672..010a2c2b6 100644 --- a/apps/http-proxy/CMakeLists.txt +++ b/apps/http-proxy/CMakeLists.txt @@ -14,11 +14,6 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) set(CMAKE_CXX_STANDARD 14) -if (NOT CMAKE_BUILD_TYPE) - message(STATUS "No build type selected, default to Release") - set(CMAKE_BUILD_TYPE "Release") -endif() - set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/" @@ -49,7 +44,9 @@ set(APP_SOURCE_FILES main.cc ) -build_library(httpproxylib +set(LIBHTTP_PROXY hicnhttpproxy) + +build_library(${LIBHTTP_PROXY} STATIC SOURCES ${LIB_SOURCE_FILES} LINK_LIBRARIES ${LIBRARIES} @@ -57,10 +54,10 @@ build_library(httpproxylib INCLUDE_DIRS ${LIBTRANSPORT_INCLUDE_DIRS} ) -build_executable(hicn-http-proxy +build_executable(${HTTP_PROXY} SOURCES ${APP_SOURCE_FILES} - LINK_LIBRARIES httpproxylib - DEPENDS httpproxylib - COMPONENT hicn-http-proxy + LINK_LIBRARIES ${LIBHTTP_PROXY} + DEPENDS ${LIBHTTP_PROXY} + COMPONENT ${HICN_APPS} DEFINITIONS ${COMPILER_DEFINITIONS} ) \ No newline at end of file -- cgit 1.2.3-korg