Line | |
---|
1 | cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
|
---|
2 | project(ariba-tunnel)
|
---|
3 |
|
---|
4 |
|
---|
5 | # Provide some choices for CMAKE_BUILD_TYPE
|
---|
6 | set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
|
---|
7 | "" Release Debug RelWithDebInfo MinSizeRel)
|
---|
8 |
|
---|
9 |
|
---|
10 | ### Find Ariba
|
---|
11 | find_package(ariba 0.8.99 REQUIRED)
|
---|
12 | if(NOT ariba_FOUND)
|
---|
13 | message(FATAL_ERROR "Could not find ariba. "
|
---|
14 | "Please have a look at the ariba_* cache variables.")
|
---|
15 | endif(NOT ariba_FOUND)
|
---|
16 |
|
---|
17 | include_directories(${ariba_INCLUDE_DIRS})
|
---|
18 | list(APPEND ariba-tunnel_LINK_LIBRARIES ariba ariba_dht)
|
---|
19 |
|
---|
20 |
|
---|
21 | ### Executable
|
---|
22 | add_executable(ariba-tunnel Udp.cpp Tunnel.cpp
|
---|
23 | main.cc
|
---|
24 | )
|
---|
25 |
|
---|
26 |
|
---|
27 | ### LINKER
|
---|
28 | target_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
|
---|
37 | IF(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)
|
---|
41 | ENDIF(NOT CMAKE_BUILD_TYPE)
|
---|
42 | message("---> Current build type is: ${CMAKE_BUILD_TYPE}")
|
---|
Note:
See
TracBrowser
for help on using the repository browser.