cmake/tribits/examples/MixedSharedStaticLibs/static_only/CMakeLists.txt
raw| 1 | tribits_subpackage(StaticOnly) |
| 2 | |
| 3 | tribits_include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
| 4 | |
| 5 | tribits_add_library( |
| 6 | static_only_lib |
| 7 | STATIC |
| 8 | HEADERS StaticOnly.hpp |
| 9 | SOURCES StaticOnly.cpp |
| 10 | ) |
| 11 | # NOTE: The library static_only_lib will be lined against the library |
| 12 | # shared_only_lib from the upstream subpackage SharedOnly. It is just fine |
| 13 | # to link a static library against an upstream shared library but the |
| 14 | # opposite is not true. |
| 15 | |
| 16 | tribits_subpackage_postprocess() |