LibreWeb-Browser/lib/whereami/CMakeLists.txt

17 lines
404 B
CMake
Raw Normal View History

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-22 08:09:54 -08:00
add_library(${LIBARY_NAME} STATIC whereami.c)
# Add X/Open definition for realpath
target_compile_definitions(${LIBARY_NAME} PUBLIC _XOPEN_SOURCE=500)
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-21 15:39:53 -08:00
PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
)