Add CMakeLists.txt

This commit is contained in:
Jack Andersen 2016-03-05 15:17:43 -10:00
parent 52ec188c28
commit 51d62f5cdf
3 changed files with 56 additions and 346 deletions

56
CMakeLists.txt Normal file
View File

@ -0,0 +1,56 @@
include_directories(.)
add_library(libjpeg-turbo
turbojpeg.h turbojpeg.c
jerror.c
jutils.c
jcparam.c
jcapimin.c
jcomapi.c
jcapistd.c
jdapistd.c
jdapimin.c
jdhuff.c
jdatadst-tj.c
jdatasrc-tj.c
transupp.c
jdtrans.c
jctrans.c
jcmaster.c
jmemmgr.c
jcmarker.c
jcinit.c
jdmaster.c
jdmarker.c
jdinput.c
jdarith.c
jdphuff.c
jdcoefct.c
jcarith.c
jcphuff.c
jchuff.c
jmemnobs.c
jccolor.c
jcsample.c
jcprepct.c
jcdctmgr.c
jccoefct.c
jcmainct.c
jquant1.c
jquant2.c
jdmerge.c
jdcolor.c
jdsample.c
jdpostct.c
jddctmgr.c
jdmainct.c
jsimd_none.c
jfdctint.c
jfdctfst.c
jfdctflt.c
jidctred.c
jidctint.c
jidctfst.c
jidctflt.c
jaricom.c)
set(LIBJPEG_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "libjpeg-turbo include path" FORCE)

View File

@ -1,249 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{4CE5A1F6-F8FA-4684-ADE0-E89DB9A4A54A}</ProjectGuid>
<RootNamespace>libjpegturbovse2013</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<ConfigurationType>StaticLibrary</ConfigurationType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<ConfigurationType>StaticLibrary</ConfigurationType>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>StaticLibrary</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v120</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<TargetExt>.lib</TargetExt>
<IncludePath>$(SolutionDir)\extern\libjpeg-turbo;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<TargetExt>.lib</TargetExt>
<IncludePath>$(SolutionDir)\extern\libjpeg-turbo;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<TargetExt>.lib</TargetExt>
<IncludePath>$(SolutionDir)\extern\libjpeg-turbo;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<TargetExt>.lib</TargetExt>
<IncludePath>$(SolutionDir)\extern\libjpeg-turbo;$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessToFile>false</PreprocessToFile>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS=1;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<SDLCheck>true</SDLCheck>
<PreprocessToFile>false</PreprocessToFile>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS=1;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS=1;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<WholeProgramOptimization>true</WholeProgramOptimization>
<StringPooling>true</StringPooling>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_CRT_SECURE_NO_WARNINGS=1;_MBCS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<MultiProcessorCompilation>true</MultiProcessorCompilation>
<InlineFunctionExpansion>AnySuitable</InlineFunctionExpansion>
<WholeProgramOptimization>true</WholeProgramOptimization>
<StringPooling>true</StringPooling>
</ClCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\cdjpeg.c" />
<ClCompile Include="..\cjpeg.c" />
<ClCompile Include="..\djpeg.c" />
<ClCompile Include="..\example.c" />
<ClCompile Include="..\jaricom.c" />
<ClCompile Include="..\jcapimin.c" />
<ClCompile Include="..\jcapistd.c" />
<ClCompile Include="..\jcarith.c" />
<ClCompile Include="..\jccoefct.c" />
<ClInclude Include="..\jccolext.h">
<FileType>CppCode</FileType>
</ClInclude>
<ClCompile Include="..\jccolor.c" />
<ClCompile Include="..\jcdctmgr.c" />
<ClCompile Include="..\jchuff.c" />
<ClCompile Include="..\jcinit.c" />
<ClCompile Include="..\jcmainct.c" />
<ClCompile Include="..\jcmarker.c" />
<ClCompile Include="..\jcmaster.c" />
<ClCompile Include="..\jcomapi.c" />
<ClCompile Include="..\jcparam.c" />
<ClCompile Include="..\jcphuff.c" />
<ClCompile Include="..\jcprepct.c" />
<ClCompile Include="..\jcsample.c" />
<ClCompile Include="..\jcstest.c" />
<ClCompile Include="..\jctrans.c" />
<ClCompile Include="..\jdapimin.c" />
<ClCompile Include="..\jdapistd.c" />
<ClCompile Include="..\jdarith.c" />
<ClCompile Include="..\jdatadst-tj.c" />
<ClCompile Include="..\jdatadst.c" />
<ClCompile Include="..\jdatasrc-tj.c" />
<ClCompile Include="..\jdatasrc.c" />
<ClCompile Include="..\jdcoefct.c" />
<ClInclude Include="..\jdcolext.h">
<FileType>CppCode</FileType>
</ClInclude>
<ClCompile Include="..\jdcolor.c" />
<ClCompile Include="..\jddctmgr.c" />
<ClCompile Include="..\jdhuff.c" />
<ClCompile Include="..\jdinput.c" />
<ClCompile Include="..\jdmainct.c" />
<ClCompile Include="..\jdmarker.c" />
<ClCompile Include="..\jdmaster.c" />
<ClCompile Include="..\jdmerge.c" />
<ClInclude Include="..\jdmrgext.h">
<FileType>CppCode</FileType>
</ClInclude>
<ClCompile Include="..\jdphuff.c" />
<ClCompile Include="..\jdpostct.c" />
<ClCompile Include="..\jdsample.c" />
<ClCompile Include="..\jdtrans.c" />
<ClCompile Include="..\jerror.c" />
<ClCompile Include="..\jfdctflt.c" />
<ClCompile Include="..\jfdctfst.c" />
<ClCompile Include="..\jfdctint.c" />
<ClCompile Include="..\jidctflt.c" />
<ClCompile Include="..\jidctfst.c" />
<ClCompile Include="..\jidctint.c" />
<ClCompile Include="..\jidctred.c" />
<ClCompile Include="..\jmemmgr.c" />
<ClCompile Include="..\jmemnobs.c" />
<ClCompile Include="..\jpegtran.c" />
<ClCompile Include="..\jquant1.c" />
<ClCompile Include="..\jquant2.c" />
<ClCompile Include="..\jsimd_none.c" />
<ClCompile Include="..\jutils.c" />
<ClCompile Include="..\rdbmp.c" />
<ClCompile Include="..\rdcolmap.c" />
<ClCompile Include="..\tjutil.c" />
<ClCompile Include="..\transupp.c" />
<ClCompile Include="..\turbojpeg.c" />
<ClCompile Include="..\wrjpgcom.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\cderror.h" />
<ClInclude Include="..\cdjpeg.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\jchuff.h" />
<ClInclude Include="..\jconfig.h" />
<ClInclude Include="..\jdct.h" />
<ClInclude Include="..\jdhuff.h" />
<ClInclude Include="..\jerror.h" />
<ClInclude Include="..\jinclude.h" />
<ClInclude Include="..\jmemsys.h" />
<ClInclude Include="..\jmorecfg.h" />
<ClInclude Include="..\jpegcomp.h" />
<ClInclude Include="..\jpegint.h" />
<ClInclude Include="..\jpeglib.h" />
<ClInclude Include="..\jsimd.h" />
<ClInclude Include="..\jsimddct.h" />
<ClInclude Include="..\jversion.h" />
<ClInclude Include="..\tjutil.h" />
<ClInclude Include="..\transupp.h" />
<ClInclude Include="..\turbojpeg.h" />
</ItemGroup>
<ItemGroup>
<None Include="..\README" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>

View File

@ -1,97 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="..\cdjpeg.c" />
<ClCompile Include="..\cjpeg.c" />
<ClCompile Include="..\djpeg.c" />
<ClCompile Include="..\example.c" />
<ClCompile Include="..\jaricom.c" />
<ClCompile Include="..\jcapimin.c" />
<ClCompile Include="..\jcapistd.c" />
<ClCompile Include="..\jcarith.c" />
<ClCompile Include="..\jccoefct.c" />
<ClCompile Include="..\jccolor.c" />
<ClCompile Include="..\jcdctmgr.c" />
<ClCompile Include="..\jchuff.c" />
<ClCompile Include="..\jcinit.c" />
<ClCompile Include="..\jcmainct.c" />
<ClCompile Include="..\jcmarker.c" />
<ClCompile Include="..\jcmaster.c" />
<ClCompile Include="..\jcomapi.c" />
<ClCompile Include="..\jcparam.c" />
<ClCompile Include="..\jcphuff.c" />
<ClCompile Include="..\jcprepct.c" />
<ClCompile Include="..\jcsample.c" />
<ClCompile Include="..\jcstest.c" />
<ClCompile Include="..\jctrans.c" />
<ClCompile Include="..\jdapimin.c" />
<ClCompile Include="..\jdapistd.c" />
<ClCompile Include="..\jdarith.c" />
<ClCompile Include="..\jdatadst.c" />
<ClCompile Include="..\jdatadst-tj.c" />
<ClCompile Include="..\jdatasrc.c" />
<ClCompile Include="..\jdatasrc-tj.c" />
<ClCompile Include="..\jdcoefct.c" />
<ClCompile Include="..\jdcolor.c" />
<ClCompile Include="..\jddctmgr.c" />
<ClCompile Include="..\jdhuff.c" />
<ClCompile Include="..\jdinput.c" />
<ClCompile Include="..\jdmainct.c" />
<ClCompile Include="..\jdmarker.c" />
<ClCompile Include="..\jdmaster.c" />
<ClCompile Include="..\jdmerge.c" />
<ClCompile Include="..\jdphuff.c" />
<ClCompile Include="..\jdpostct.c" />
<ClCompile Include="..\jdsample.c" />
<ClCompile Include="..\jdtrans.c" />
<ClCompile Include="..\jerror.c" />
<ClCompile Include="..\jfdctflt.c" />
<ClCompile Include="..\jfdctfst.c" />
<ClCompile Include="..\jfdctint.c" />
<ClCompile Include="..\jidctflt.c" />
<ClCompile Include="..\jidctfst.c" />
<ClCompile Include="..\jidctint.c" />
<ClCompile Include="..\jidctred.c" />
<ClCompile Include="..\jmemmgr.c" />
<ClCompile Include="..\jmemnobs.c" />
<ClCompile Include="..\jpegtran.c" />
<ClCompile Include="..\jquant1.c" />
<ClCompile Include="..\jquant2.c" />
<ClCompile Include="..\jsimd_none.c" />
<ClCompile Include="..\jutils.c" />
<ClCompile Include="..\rdbmp.c" />
<ClCompile Include="..\rdcolmap.c" />
<ClCompile Include="..\tjutil.c" />
<ClCompile Include="..\transupp.c" />
<ClCompile Include="..\turbojpeg.c" />
<ClCompile Include="..\wrjpgcom.c" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\cderror.h" />
<ClInclude Include="..\cdjpeg.h" />
<ClInclude Include="..\config.h" />
<ClInclude Include="..\jchuff.h" />
<ClInclude Include="..\jconfig.h" />
<ClInclude Include="..\jdct.h" />
<ClInclude Include="..\jdhuff.h" />
<ClInclude Include="..\jerror.h" />
<ClInclude Include="..\jinclude.h" />
<ClInclude Include="..\jmemsys.h" />
<ClInclude Include="..\jmorecfg.h" />
<ClInclude Include="..\jpegcomp.h" />
<ClInclude Include="..\jpegint.h" />
<ClInclude Include="..\jpeglib.h" />
<ClInclude Include="..\jsimd.h" />
<ClInclude Include="..\jsimddct.h" />
<ClInclude Include="..\jversion.h" />
<ClInclude Include="..\tjutil.h" />
<ClInclude Include="..\transupp.h" />
<ClInclude Include="..\turbojpeg.h" />
<ClInclude Include="..\jdmrgext.h" />
<ClInclude Include="..\jdcolext.h" />
<ClInclude Include="..\jccolext.h" />
</ItemGroup>
<ItemGroup>
<None Include="..\README" />
</ItemGroup>
</Project>