Initial commit of example projects (except: example2-client).
[libt2n] / examples-codegen / example1-client-wrapper / CMakeLists.txt
CommitLineData
471f240f
KK
1# Project
2project(libt2n-example1-client-wrapper)
3set(VERSION 0.1)
4set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}")
5
6# CMake
7set(CMAKE_COLOR_MAKEFILE ON)
8cmake_minimum_required(VERSION 2.6 FATAL_ERROR)
9
10# Source package generation
11set(CPACK_SOURCE_GENERATOR TGZ)
12set(CPACK_SOURCE_IGNORE_FILES "~$;\\\\.git;build;build-rpm")
13set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION}")
14
15# Find external packages
16include(FindPkgConfig)
17
18pkg_check_modules(T2NEXAMPLE REQUIRED t2nexample=0.1)
19include_directories(${T2NEXAMPLE_INCLUDE_DIRS})
20link_directories(${T2NEXAMPLE_LIBRARY_DIRS})
21
22include(CPack)
23
24# Sources
25set(libt2n_example1_client_wrapper_SOURCES
26 client.cpp
27)
28
29# Executables
30add_executable(libt2n-example1-client-wrapper ${libt2n_example1_client_wrapper_SOURCES})
31
32# Dependencies
33target_link_libraries(libt2n-example1-client-wrapper ${T2NEXAMPLE_LIBRARIES})
34
35# Installation
36# install(TARGETS libt2n-example1-client-wrapper DESTINATION bin)