1 Debian patch touch this file
| •1 | cmake_minimum_required(VERSION 3.15) |
| 2 | |
| 3 | set(SOURCE_FILES |
| 4 | fact.cpp |
| 5 | fact.h |
| 6 | ) |
| 7 | |
| 8 | add_library(fact SHARED ${SOURCE_FILES}) |
| 9 | target_link_libraries(fact LINK_PUBLIC Kernel) |
| 10 | |
| 11 | add_executable(fact_test test.c) |
| 12 | target_link_libraries(fact_test LINK_PUBLIC Kernel fact) |
| 13 | |
| 14 | # allow library users to find headers |
| 15 | target_include_directories(fact PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |