Also include header file as part of the library

master
Melroy van den Berg 2022-01-28 22:50:04 +01:00
parent 1ee8a2d737
commit ddedea4c7d
No known key found for this signature in database
GPG Key ID: 71D11FF23454B9D7
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ project(whereami)
set(LIBARY_NAME ${PROJECT_NAME})
# Create static library
add_library(${LIBARY_NAME} STATIC whereami.c)
add_library(${LIBARY_NAME} STATIC whereami.c whereami.h)
# Add X/Open definition for realpath
target_compile_definitions(${LIBARY_NAME} PUBLIC _XOPEN_SOURCE=500)