source: sample/AribaTunnel/CMakeLists.txt@ 12755

Last change on this file since 12755 was 12457, checked in by hock@…, 11 years ago

added AribaTunnel to the repo

File size: 1.0 KB
RevLine 
[12457]1cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
2project(ariba-tunnel)
3
4
5# Provide some choices for CMAKE_BUILD_TYPE
6set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
7 "" Release Debug RelWithDebInfo MinSizeRel)
8
9
10### Find Ariba
11find_package(ariba 0.8.99 REQUIRED)
12if(NOT ariba_FOUND)
13 message(FATAL_ERROR "Could not find ariba. "
14 "Please have a look at the ariba_* cache variables.")
15endif(NOT ariba_FOUND)
16
17include_directories(${ariba_INCLUDE_DIRS})
18list(APPEND ariba-tunnel_LINK_LIBRARIES ariba ariba_dht)
19
20
21### Executable
22add_executable(ariba-tunnel Udp.cpp Tunnel.cpp
23 main.cc
24)
25
26
27### LINKER
28target_link_libraries(ariba-tunnel ${ariba-tunnel_LINK_LIBRARIES})
29
30# ### INSTALL
31# INSTALL(TARGETS ariba-tunnel
32# RUNTIME DESTINATION bin
33# )
34
35
36## set default build type
37IF(NOT CMAKE_BUILD_TYPE)
38 SET(CMAKE_BUILD_TYPE Release
39 CACHE STRING "Choose the type of build : None Debug Release RelWithDebInfo MinSizeRel Profiling."
40 FORCE)
41ENDIF(NOT CMAKE_BUILD_TYPE)
42message("---> Current build type is: ${CMAKE_BUILD_TYPE}")
Note: See TracBrowser for help on using the repository browser.