Fix include directories for pixman target

This is required to include the pixman-version.h
This commit is contained in:
David Capello 2023-11-26 21:43:05 -03:00
parent bf69233bc7
commit 7fb4bea265

View File

@ -1,4 +1,5 @@
# Copyright (C) 2014, 2016 by David Capello
# Copyright (C) 2023 Igara Studio S.A.
# Copyright (C) 2014-2016 David Capello
add_definitions(-DHAVE_CONFIG_H)
@ -15,11 +16,6 @@ configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/../pixman/pixman/pixman-version.h.in"
"${CMAKE_BINARY_DIR}/pixman-version.h")
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../pixman/pixman
${CMAKE_BINARY_DIR})
add_library(pixman
../pixman/pixman/pixman-access-accessors.c
../pixman/pixman/pixman-access.c
@ -51,3 +47,8 @@ add_library(pixman
../pixman/pixman/pixman-utils.c
../pixman/pixman/pixman-x86.c
../pixman/pixman/pixman.c)
target_include_directories(pixman PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/../pixman/pixman
${CMAKE_BINARY_DIR})