| 1 |
TRIBITS_CONFIGURE_FILE( ${PACKAGE_NAME}_config.h ) |
| 2 |
|
| 3 |
TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}) |
| 4 |
TRIBITS_INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) |
| 5 |
|
| 6 |
SET(HEADERS "") |
| 7 |
SET(SOURCES "") |
| 8 |
|
| 9 |
FILE(GLOB HEADERS *.hpp *.h) |
| 10 |
FILE(GLOB SOURCES *.cpp) |
| 11 |
# Make sure that the subpackage's automatically generated |
| 12 |
# configuration header file gets installed, along with the |
| 13 |
# human-authored header files. PACKAGE_NAME here indicates |
| 14 |
# the subpackage's name. |
| 15 |
LIST( APPEND HEADERS ${CMAKE_CURRENT_BINARY_DIR}/${PACKAGE_NAME}_config.h ) |
| 16 |
|
| 17 |
# Define targets for the subpackage's library. |
| 18 |
# No need to use DEPLIBS, since this subpackage will only make one library; |
| 19 |
# the subpackage's dependencies handle dependencies outside of the subpackage. |
| 20 |
TRIBITS_ADD_LIBRARY( |
| 21 |
teuchoskokkoscompat |
| 22 |
HEADERS ${HEADERS} |
| 23 |
SOURCES ${SOURCES} |
| 24 |
) |