diff options
author | 2019-03-25 16:47:47 +0100 | |
---|---|---|
committer | 2019-03-27 15:05:44 +0100 | |
commit | e7af5711a05311ac92d0f8c59986fea4032937c9 (patch) | |
tree | f6773cd84634f4404fb8b192a50ee84f8ef65162 /apps/CMakeLists.txt | |
parent | 558581790763815071e9c77e06047e689faf752f (diff) |
[HICN-149] Build packages for applications.
Change-Id: Ia13bc4d2711b9897c0afb9b9b43cd04667e41bac
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'apps/CMakeLists.txt')
-rw-r--r-- | apps/CMakeLists.txt | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/apps/CMakeLists.txt b/apps/CMakeLists.txt index 766c9c7e5..5fed15380 100644 --- a/apps/CMakeLists.txt +++ b/apps/CMakeLists.txt @@ -25,8 +25,6 @@ set(CMAKE_MODULE_PATH include(BuildMacros) include(WindowsMacros) -find_package(Asio REQUIRED) - if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) find_package(Libtransport REQUIRED) include_directories(${LIBTRANSPORT_INCLUDE_DIRS}) @@ -38,20 +36,28 @@ else() ) endif() +set(SUFFIX "") +if (${LIBTRANSPORT_LIBRARIES} MATCHES ".*-memif.*") + set(SUFFIX "-memif") +endif() + +set(HICN_APPS "${HICN_APPS}${SUFFIX}") + list(APPEND LIBRARIES ${LIBTRANSPORT_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} ) -include(Packaging) - -set(COMPILER_DEFINITIONS "") - - if (WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /wd4200 /wd4996") endif () +include(Packaging) + +set(HIGET higet) +set(HTTP_SERVER hicn-http-sever) +set(HTTP_PROXY hicn-http-proxy) + add_subdirectory(http-server) add_subdirectory(http-proxy) add_subdirectory(higet)
\ No newline at end of file |