Commit | Line | Data |
---|---|---|
42d5cde7 KK |
1 | # Project |
2 | project(libt2n-example2-client) | |
3 | set(VERSION 0.1) | |
4 | set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}") | |
5 | ||
6 | # CMake | |
7 | set(CMAKE_COLOR_MAKEFILE ON) | |
8 | cmake_minimum_required(VERSION 2.6 FATAL_ERROR) | |
9 | ||
10 | # Source package generation | |
11 | set(CPACK_SOURCE_GENERATOR TGZ) | |
12 | set(CPACK_SOURCE_IGNORE_FILES "~$;\\\\.git;build;build-rpm") | |
13 | set(CPACK_SOURCE_PACKAGE_FILE_NAME "${PROJECT_NAME}-${VERSION}") | |
14 | ||
15 | # Find external packages | |
7ba38527 | 16 | # include(FindPkgConfig) |
42d5cde7 | 17 | |
7ba38527 KK |
18 | # pkg_check_modules(DEFAULT REQUIRED default=0.1) |
19 | # include_directories(${DEFAULT_INCLUDE_DIRS}) | |
20 | # link_directories(${DEFAULT_LIBRARY_DIRS}) | |
42d5cde7 KK |
21 | |
22 | include(CPack) | |
23 | ||
24 | # Sources | |
25 | set(libt2n_example2_client_SOURCES | |
26 | client.cpp | |
27 | ) | |
28 | ||
29 | # Executables | |
30 | add_executable(libt2n-example2-client ${libt2n_example2_client_SOURCES}) | |
31 | ||
32 | # Dependencies | |
7ba38527 KK |
33 | # target_link_libraries(libt2n-example2-client ${DEFAULT_LIBRARIES}) |
34 | target_link_libraries(libt2n-example2-client default) | |
42d5cde7 KK |
35 | |
36 | # Installation | |
37 | # install(TARGETS libt2n-example2-client DESTINATION bin) |