summaryrefslogtreecommitdiffstats
path: root/apps/http-proxy
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-03-25 16:47:47 +0100
committerMauro Sardara <msardara@cisco.com>2019-03-27 15:05:44 +0100
commite7af5711a05311ac92d0f8c59986fea4032937c9 (patch)
treef6773cd84634f4404fb8b192a50ee84f8ef65162 /apps/http-proxy
parent558581790763815071e9c77e06047e689faf752f (diff)
[HICN-149] Build packages for applications.
Change-Id: Ia13bc4d2711b9897c0afb9b9b43cd04667e41bac Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'apps/http-proxy')
-rw-r--r--apps/http-proxy/CMakeLists.txt17
1 files changed, 7 insertions, 10 deletions
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