diff options
| author | Martin Hořeňovský | 2019-12-08 20:57:55 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-12-08 20:58:52 +0100 |
| commit | 29b441949cc09f59a867972cbbac4b88f1a10843 (patch) | |
| tree | 74c279661da73ae71338623f83b4d666faf390ed /src | |
| parent | 70ef2f7f12c2c62714a2e926679172142ea150ff (diff) | |
| download | catch3-29b441949cc09f59a867972cbbac4b88f1a10843.tar.gz | |
Port the last example
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3909d481..227943b7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -229,3 +229,20 @@ target_include_directories(Catch2 $<BUILD_INTERFACE:${SOURCES_DIR}/..> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> ) + +function(StampOutLibrary target) + add_library(Catch2_${target} STATIC + ${REPORTER_FILES} + ${INTERNAL_FILES} + ${BENCHMARK_HEADERS} + ${BENCHMARK_SOURCES} + ) + + target_include_directories(Catch2_${target} + PUBLIC + $<BUILD_INTERFACE:${SOURCES_DIR}/..> + $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> + ) + + target_link_libraries(${target} Catch2_${target}) +endfunction() |