From 92e401e963bf60d511444bbef92a0a6eb655ab72 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 1 Mar 2017 18:57:25 +0300 Subject: [PATCH] Install CoreGraphics.framework --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78e871d..2edcd39 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -project(coregraphics) +project(CoreGraphics) cmake_minimum_required(VERSION 2.4.0) @@ -164,7 +164,7 @@ set(GNUSTEP_GUI_MINOR_VERSION 25) set(GNUSTEP_GUI_SUBMINOR_VERSION 0) set(GCC_VERSION "${CMAKE_CXX_COMPILER_VERSION}") -set(coregraphics_SRCS +set(CoreGraphics_SRCS Source/OpalGraphics/CGAffineTransform.m Source/OpalGraphics/CGBitmapContext.m Source/OpalGraphics/CGColor.m @@ -238,6 +238,8 @@ set(coregraphics_SRCS Source/OpalText/FreeType/OPFreeTypeFont.m ) -set_source_files_properties(${coregraphics_SRCS} LANGUAGE C) +set_source_files_properties(${CoreGraphics_SRCS} LANGUAGE C) -add_library(coregraphics OBJECT ${coregraphics_SRCS}) +add_library(CoreGraphics SHARED ${CoreGraphics_SRCS}) +target_link_libraries(CoreGraphics system lcms png gif tiff jpeg X11 Xext Xrender fontconfig cairo) +install(TARGETS CoreGraphics DESTINATION ${CMAKE_INSTALL_LIBDIR}/darling)