PageRenderTime 9ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 1ms

/src/freetype/CMakeLists.txt

https://bitbucket.org/cabalistic/ogredeps/
CMake | 114 lines | 107 code | 6 blank | 1 comment | 4 complexity | 4e50047fc9e016994f02f653595db76a MD5 | raw file
  1project(freetype)
  2
  3set(freetype_SOURCES
  4  #builds/win32/ftdebug.c
  5	include/freetype/config/ftconfig.h
  6	include/freetype/config/ftheader.h
  7	include/freetype/config/ftmodule.h
  8	include/freetype/config/ftoption.h
  9	include/freetype/config/ftstdlib.h
 10	include/freetype/freetype.h
 11	include/freetype/ftadvanc.h
 12	include/freetype/ftbbox.h
 13	include/freetype/ftbdf.h
 14	include/freetype/ftbitmap.h
 15    include/freetype/ftbzip2.h
 16	include/freetype/ftcache.h
 17	include/freetype/ftchapters.h
 18	include/freetype/ftcid.h
 19	include/freetype/fterrdef.h
 20	include/freetype/fterrors.h
 21	include/freetype/ftgasp.h
 22	include/freetype/ftglyph.h
 23	include/freetype/ftgxval.h
 24	include/freetype/ftgzip.h
 25	include/freetype/ftimage.h
 26	include/freetype/ftincrem.h
 27	include/freetype/ftlcdfil.h
 28	include/freetype/ftlist.h
 29	include/freetype/ftlzw.h
 30	include/freetype/ftmac.h
 31	include/freetype/ftmm.h
 32	include/freetype/ftmodapi.h
 33	include/freetype/ftmoderr.h
 34	include/freetype/ftotval.h
 35	include/freetype/ftoutln.h
 36	include/freetype/ftpfr.h
 37	include/freetype/ftrender.h
 38	include/freetype/ftsizes.h
 39	include/freetype/ftsnames.h
 40	include/freetype/ftstroke.h
 41	include/freetype/ftsynth.h
 42	include/freetype/ftsystem.h
 43	include/freetype/fttrigon.h
 44	include/freetype/fttypes.h
 45	include/freetype/ftwinfnt.h
 46	include/freetype/ftxf86.h
 47	include/freetype/t1tables.h
 48	include/freetype/ttnameid.h
 49	include/freetype/tttables.h
 50	include/freetype/tttags.h
 51	include/freetype/ttunpat.h
 52	include/ft2build.h
 53	src/autofit/autofit.c
 54	src/base/ftbase.c
 55	src/base/ftbbox.c
 56	src/base/ftbitmap.c
 57	src/base/ftfstype.c
 58	src/base/ftgasp.c
 59	src/base/ftglyph.c
 60	src/base/ftinit.c
 61	src/base/ftmm.c
 62	src/base/ftpfr.c
 63	src/base/ftstroke.c
 64	src/base/ftsynth.c
 65	src/base/ftsystem.c
 66	src/base/fttype1.c
 67	src/base/ftwinfnt.c
 68	src/bdf/bdf.c
 69    src/bzip2/ftbzip2.c
 70	src/cache/ftcache.c
 71	src/cff/cff.c
 72	src/cid/type1cid.c
 73	src/gzip/ftgzip.c
 74	src/lzw/ftlzw.c
 75	src/pcf/pcf.c
 76	src/pfr/pfr.c
 77	src/psaux/psaux.c
 78	src/pshinter/pshinter.c
 79	src/psnames/psmodule.c
 80	src/raster/raster.c
 81	src/sfnt/sfnt.c
 82	src/smooth/smooth.c
 83	src/truetype/truetype.c
 84	src/type1/type1.c
 85	src/type42/type42.c
 86	src/winfonts/winfnt.c
 87)
 88
 89include_directories(include)
 90add_definitions(-DFT2_BUILD_LIBRARY)
 91add_library(freetype STATIC ${freetype_SOURCES})
 92if (OGRE_PROJECT_FOLDERS)
 93	set_property(TARGET freetype PROPERTY FOLDER Dependencies)
 94endif ()
 95install_dep(freetype include)
 96if (OGREDEPS_INSTALL_DEV)
 97  install(DIRECTORY include/ DESTINATION include)
 98endif ()
 99
100if (APPLE)
101 set_target_properties(freetype PROPERTIES XCODE_ATTRIBUTE_ONLY_ACTIVE_ARCH "NO")
102
103 if(OGRE_BUILD_PLATFORM_APPLE_IOS)
104  add_definitions(-DHAVE_QUICKDRAW_CARBON=0 -DHAVE_QUICKDRAW_TOOLBOX=0 -DHAVE_ATS=0 -DHAVE_FSREF=0 -DHAVE_FSSPEC=0 -DDARWIN_NO_CARBON=1 -DFT_CONFIG_OPTION_NO_ASSEMBLER=1)
105
106  set_target_properties(freetype PROPERTIES XCODE_ATTRIBUTE_GCC_THUMB_SUPPORT "NO")
107 endif()
108endif()
109
110set(FREETYPE_FT2BUILD_INCLUDE_DIR "${freetype_SOURCE_DIR}/include" CACHE PATH "" FORCE)
111set(FREETYPE_INCLUDE_DIR "${freetype_SOURCE_DIR}/include/freetype" CACHE PATH "" FORCE)
112set(FREETYPE_LIBRARY_DBG "freetype" CACHE STRING "" FORCE)
113set(FREETYPE_LIBRARY_REL "freetype" CACHE STRING "" FORCE)
114mark_as_advanced(FREETYPE_FT2BUILD_INCLUDE_DIR FREETYPE_INCLUDE_DIR FREETYPE_LIBRARY_DBG FREETYPE_LIBRARY_REL)