X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=examples-codegen%2Fexample1-client%2FCMakeLists.txt;fp=examples-codegen%2Fexample1-client%2FCMakeLists.txt;h=ccfe1cacc0cfa31276b1e9311037b6d5985a0051;hp=0000000000000000000000000000000000000000;hb=471f240f070a5e34892f90be2b0dfc55c09c6fc7;hpb=9fe43ede225bae3072564605f9fd74e663ed19aa diff --git a/examples-codegen/example1-client/CMakeLists.txt b/examples-codegen/example1-client/CMakeLists.txt new file mode 100644 index 0000000..ccfe1ca --- /dev/null +++ b/examples-codegen/example1-client/CMakeLists.txt @@ -0,0 +1,36 @@ +# Project +project(libt2n-example1-client) +set(VERSION 0.1) +set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") + +# CMake +set(CMAKE_COLOR_MAKEFILE ON) +cmake_minimum_required(VERSION 2.6 FATAL_ERROR) + +# Source package generation +set(CPACK_SOURCE_GENERATOR TGZ) +set(CPACK_SOURCE_IGNORE_FILES "~$;\\\\.git;build;build-rpm") +set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION}") + +# Find external packages +include(FindPkgConfig) + +pkg_check_modules(T2NEXAMPLE REQUIRED t2nexample=0.1) +include_directories(${T2NEXAMPLE_INCLUDE_DIRS}) +link_directories(${T2NEXAMPLE_LIBRARY_DIRS}) + +include(CPack) + +# Sources +set(libt2n_example1_client_SOURCES + client.cpp +) + +# Executables +add_executable(libt2n-example1-client ${libt2n_example1_client_SOURCES}) + +# Dependencies +target_link_libraries(libt2n-example1-client ${T2NEXAMPLE_LIBRARIES}) + +# Installation +# install(TARGETS libt2n-example1-client DESTINATION bin)