2022-01-21 15:39:53 -08:00
|
|
|
project(whereami)
|
|
|
|
|
2022-01-22 08:09:54 -08:00
|
|
|
set(LIBARY_NAME ${PROJECT_NAME})
|
2022-01-21 15:39:53 -08:00
|
|
|
|
|
|
|
# Create static library
|
2022-01-28 13:50:04 -08:00
|
|
|
add_library(${LIBARY_NAME} STATIC whereami.c whereami.h)
|
2022-01-22 08:09:54 -08:00
|
|
|
|
2022-01-21 15:39:53 -08:00
|
|
|
# Use PUBLIC iso INTERFACE, so the library itself also finds it's own header file
|
|
|
|
target_include_directories(
|
2022-01-22 08:09:54 -08:00
|
|
|
${LIBARY_NAME}
|
2022-01-28 14:39:50 -08:00
|
|
|
SYSTEM PUBLIC
|
2022-01-21 15:39:53 -08:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
)
|