blob: f3b6d144e3dcd5b6b1fdd4cd072d02cb4fa2e903 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
# =================================================================================================
# ADOBE SYSTEMS INCORPORATED
# Copyright 2020 Adobe Systems Incorporated
# All Rights Reserved
#
# NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
# of the Adobe license agreement accompanying it.
# =================================================================================================
# define minimum cmake version
# For Android always build with make 3.6
if(ANDROID)
cmake_minimum_required(VERSION 3.5.2)
else(ANDROID)
cmake_minimum_required(VERSION 3.15.5)
endif(ANDROID)
SET(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "Configurations" FORCE)
#This projects relative path to XMP Root
# Set the project name according to target
if(CMAKE_CL_64)
set(IS64BIT "TRUE")
set (POSTFIX "_x64")
project(XMP_Samples_64)
message (INFO ":64 Target is chosen")
else(CMAKE_CL_64)
set(IS64BIT "FALSE")
project(XMP_Samples)
message (INFO ":32 bit target is chosen")
endif(CMAKE_CL_64)
set(TESTXMP_VERSION 1.0)
# setting static flag for correct compiler flag through shared config
if(STATIC)
set (XMP_BUILD_STATIC 1)
else(STATIC)
set (XMP_BUILD_STATIC 0)
endif(STATIC)
# ==============================================================================
# load shared config
# ==============================================================================
include(SharedConfigSDK.cmake)
# common path defines
# setup project specific paths
set( PROJECT_ROOT ${PROJECT_SOURCE_DIR})
set( SAMPLE_SOURCE_ROOT ${PROJECT_ROOT}/../../source/)
set( XMP_ROOT ${PROJECT_ROOT}/../../.. )
set( PUBLIC_INCLUDE ${XMP_ROOT}/public/include)
# Output of test executables
set(OUTPUT_DIR ${SAMPLE_SOURCE_ROOT}/target/${PLATFORM_FOLDER}/)
# Add the Samples to the project
# message (INFO ":Add CustomSchema sample")
add_subdirectory(${PROJECT_ROOT}/CustomSchema ${PROJECT_ROOT}/CustomSchema/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/CustomSchemaNewDOM ${PROJECT_ROOT}/CustomSchemaNewDOM/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/DumpFile ${PROJECT_ROOT}/DumpFile/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/DumpMainXMP ${PROJECT_ROOT}/DumpMainXMP/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/DumpScannedXMP ${PROJECT_ROOT}/DumpScannedXMP/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/ModifyingXMP ${PROJECT_ROOT}/ModifyingXMP/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/ModifyingXMPNewDOM ${PROJECT_ROOT}/ModifyingXMPNewDOM/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/ReadingXMP ${PROJECT_ROOT}/ReadingXMP/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/ReadingXMPNewDOM ${PROJECT_ROOT}/ReadingXMPNewDOM/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/XMPCommand ${PROJECT_ROOT}/XMPCommand/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/XMPCoreCoverage ${PROJECT_ROOT}/XMPCoreCoverage/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/XMPFilesCoverage ${PROJECT_ROOT}/XMPFilesCoverage/build${POSTFIX})
add_subdirectory(${PROJECT_ROOT}/XMPIterations ${PROJECT_ROOT}/XMPIterations/build${POSTFIX})
message (STATUS "===========================================================================")
message (STATUS " ${PROJECT_NAME} ")
message (STATUS "===========================================================================")
|