| 1 |
# |
| 2 |
# A) Define the subpackage |
| 3 |
# |
| 4 |
tribits_subpackage(A) |
| 5 |
|
| 6 |
# |
| 7 |
# B) Set up subpackage-specific options |
| 8 |
# |
| 9 |
|
| 10 |
set(${PACKAGE_NAME}_SPECIAL_VALUE 3 CACHE STRING "Integer special value") |
| 11 |
tribits_pkg_export_cache_var(${PACKAGE_NAME}_SPECIAL_VALUE) |
| 12 |
|
| 13 |
# |
| 14 |
# C) Add the libraries, tests, and examples |
| 15 |
# |
| 16 |
|
| 17 |
tribits_configure_file(${PACKAGE_NAME}_config.h) |
| 18 |
|
| 19 |
tribits_include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
| 20 |
|
| 21 |
tribits_include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
| 22 |
tribits_add_library(pws_a |
| 23 |
SOURCES A.cpp |
| 24 |
HEADERS A.hpp ${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}_config.h |
| 25 |
) |
| 26 |
|
| 27 |
tribits_add_test_directories(tests) |
| 28 |
|
| 29 |
# |
| 30 |
# D) Do standard post processing |
| 31 |
# |
| 32 |
tribits_subpackage_postprocess() |