Harrison Mutai | e0bc2c8 | 2025-05-08 15:36:08 +0000 | [diff] [blame^] | 1 | set(PROJECT_API_SRC_DIR ${PROJECT_SOURCE_DIR}/src/${PROJECT_API}) |
2 | set(PROJECT_API_INC_DIR ${PROJECT_SOURCE_DIR}/include/${PROJECT_API}) | ||||
3 | |||||
4 | if(EXISTS "${PROJECT_API_SRC_DIR}") | ||||
5 | file(GLOB PROJECT_SOURCES "${PROJECT_API_SRC_DIR}/*.c") | ||||
6 | target_sources(tl PRIVATE ${PROJECT_SOURCES}) | ||||
7 | target_include_directories(tl PUBLIC ${PROJECT_API_INC_DIR}) | ||||
8 | else() | ||||
9 | message(FATAL_ERROR "Project-specific API '${PROJECT_API}' not found") | ||||
10 | endif() |