Commit 628febb8 authored by Tim Thirion's avatar Tim Thirion

Update CMakeLists for iOS examples

Also, set vtk.framework path in Xcode projects to CMake default.

Change-Id: Iebe4b9eff435c26ef8d6a254487275198ac8f23e
parent 48752aec
......@@ -3,11 +3,18 @@
if (TRUE)
add_custom_target(iOS-examples-rm ALL
COMMAND ${CMAKE_COMMAND} -E remove_directory
"${CMAKE_CURRENT_BINARY_DIR}/GLPaint")
add_custom_target(iOS-examples-copy ALL
"${CMAKE_CURRENT_BINARY_DIR}/GLPaint"
COMMAND ${CMAKE_COMMAND} -E remove_directory
"${CMAKE_CURRENT_BINARY_DIR}/Surfaces")
add_custom_target(iOS-examples-copy ALL
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/GLPaint"
"${CMAKE_CURRENT_BINARY_DIR}/GLPaint")
"${CMAKE_CURRENT_BINARY_DIR}/GLPaint"
COMMAND ${CMAKE_COMMAND} -E copy_directory
"${CMAKE_CURRENT_SOURCE_DIR}/Surfaces"
"${CMAKE_CURRENT_BINARY_DIR}/Surfaces")
add_dependencies(iOS-examples-copy iOS-examples-rm)
else ()
add_subdirectory(MaceVTK/MaceVTK)
......
......@@ -25,7 +25,7 @@
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
13328B8319C77700006A473C /* vtk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = vtk.framework; path = ../../../vtkinstall/frameworks/vtk.framework; sourceTree = "<group>"; };
13328B8319C77700006A473C /* vtk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = vtk.framework; path = /usr/local/frameworks/vtk.framework; sourceTree = "<group>"; };
13328B8519C77938006A473C /* libstdc++.6.0.9.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = "libstdc++.6.0.9.dylib"; path = "usr/lib/libstdc++.6.0.9.dylib"; sourceTree = SDKROOT; };
13B73C8919DEE9B800A42447 /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = Classes/AppDelegate.h; sourceTree = "<group>"; };
13B73C8A19DEE9B800A42447 /* AppDelegate.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = AppDelegate.mm; path = Classes/AppDelegate.mm; sourceTree = "<group>"; };
......@@ -233,7 +233,7 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
../../../vtkinstall/frameworks,
/usr/local/frameworks,
);
GCC_DYNAMIC_NO_PIC = NO;
GCC_OPTIMIZATION_LEVEL = 0;
......@@ -242,7 +242,7 @@
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"../../../vtkinstall/include/vtk-6.2",
/usr/local/frameworks/vtk.framework/Headers,
);
INFOPLIST_FILE = "GLPaint-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
......@@ -264,14 +264,14 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
../../../vtkinstall/frameworks,
/usr/local/frameworks,
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = Prefix.pch;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"../../../vtkinstall/include/vtk-6.2",
/usr/local/frameworks/vtk.framework/Headers,
);
INFOPLIST_FILE = "GLPaint-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
......
......@@ -36,7 +36,7 @@
1D3623EB0D0F72F000981E51 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
1D6058910D05DD3D006BFB54 /* Surfaces.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Surfaces.app; sourceTree = BUILT_PRODUCTS_DIR; };
1DF5F4DF0D08C38300B7A737 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
225248061A2E3FDB009B03BD /* vtk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = vtk.framework; path = ../../../../../../../usr/local/frameworks/vtk.framework; sourceTree = "<group>"; };
225248061A2E3FDB009B03BD /* vtk.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = vtk.framework; path = /usr/local/frameworks/vtk.framework; sourceTree = SOURCE_ROOT; };
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
2D500B920D5A79C200DBA0E3 /* OpenGLES.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = OpenGLES.framework; path = System/Library/Frameworks/OpenGLES.framework; sourceTree = SDKROOT; };
2D500B990D5A79CF00DBA0E3 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
......@@ -233,7 +233,6 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
../../../vtkinstall/frameworks,
/usr/local/frameworks,
);
GCC_DYNAMIC_NO_PIC = NO;
......@@ -266,7 +265,6 @@
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
../../../vtkinstall/frameworks,
/usr/local/frameworks,
);
GCC_PRECOMPILE_PREFIX_HEADER = YES;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment