Skip to content

Commit 0ebbad7

Browse files
Update SDK generation and fix example
1 parent ea815f1 commit 0ebbad7

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

SDK/Examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ add_executable(Example_BeamLattice Source/BeamLattice.cpp)
5858
CopySharedLibrary(Example_BeamLattice)
5959

6060
if (WIN32)
61-
IF(${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} LESS 3.6)
61+
IF(${CMAKE_VERSION} VERSION_LESS 3.6.3)
6262
MESSAGE ("Note: You need to manually select a StartUp-project in Visual Studio.")
6363
ELSE()
6464
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Example_Cube)

SDK/Examples/Source/TextureCube.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ int main ()
366366
}
367367

368368
// Set progress callback
369-
lib3mf_writer_setprogresscallback(p3MFWriter, SimpleCallback, nullptr);
369+
lib3mf_writer_setprogresscallback(p3MFWriter, SimpleCallback, NULL);
370370

371371
// Export Model into File
372372
std::cout << "writing texturecube.3mf..." << std::endl;

SDK/GenerateSDK.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ cp ../Include/Common/Platform/NMR_SAL.h $SDKARTIFACTS/Include/Common/Platform/.
4848
cp ../Include/Common/Platform/NMR_WinTypes.h $SDKARTIFACTS/Include/Common/Platform/.
4949
cp ../Include/Common/Platform/NMR_COM_Emulation.h $SDKARTIFACTS/Include/Common/Platform/.
5050
cp ../Include/Common/3MF_ProgressTypes.h $SDKARTIFACTS/Include/Common/.
51+
cp ../Lib3MF-1.pdf $SDKARTIFACTS/Doc/.
5152

5253
#=Obtain latest lib3MF-shared libraries=#
5354
echo Obtain latest lib3MF-shared libraries

0 commit comments

Comments
 (0)