From 621a7a1abd162a4c09aeb55cc8ac9b33dd6abf38 Mon Sep 17 00:00:00 2001 From: RumbleballTheReal <41473331+RumbleballTheReal@users.noreply.github.com> Date: Mon, 9 Sep 2019 15:50:57 +0200 Subject: [PATCH 1/3] Create BUILDBINARIES_EXAMPLE.bat --- BUILDBINARIES_EXAMPLE.bat | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 BUILDBINARIES_EXAMPLE.bat diff --git a/BUILDBINARIES_EXAMPLE.bat b/BUILDBINARIES_EXAMPLE.bat new file mode 100644 index 000000000..df8468195 --- /dev/null +++ b/BUILDBINARIES_EXAMPLE.bat @@ -0,0 +1,20 @@ +:: This is an example file to generate binaries using Windows Operating System +:: This script is configured to be executed from the source directory + +:: Compiled binaries will be placed in BINARIES_DIR\code\CONFIG + +SET SOURCE_DIR=. + +:: For generators see "cmake --help" +SET GENERATOR=Visual Studio 15 2017 + +SET BINARIES_DIR="./BINARIES/Win32" +cmake CMakeLists.txt -G "%GENERATOR%" -S %SOURCE_DIR% -B %BINARIES_DIR% +cmake --build %BINARIES_DIR% --config release + +SET BINARIES_DIR="./BINARIES/x64" +cmake CMakeLists.txt -G "%GENERATOR% Win64" -S %SOURCE_DIR% -B %BINARIES_DIR% +cmake --build %BINARIES_DIR% --config debug +cmake --build %BINARIES_DIR% --config release + +PAUSE From a0fb50146aa0e02086be17ccc20e5a557645d479 Mon Sep 17 00:00:00 2001 From: RumbleballTheReal <41473331+RumbleballTheReal@users.noreply.github.com> Date: Mon, 9 Sep 2019 15:56:21 +0200 Subject: [PATCH 2/3] Update BUILDBINARIES_EXAMPLE.bat --- BUILDBINARIES_EXAMPLE.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BUILDBINARIES_EXAMPLE.bat b/BUILDBINARIES_EXAMPLE.bat index df8468195..0841a83e8 100644 --- a/BUILDBINARIES_EXAMPLE.bat +++ b/BUILDBINARIES_EXAMPLE.bat @@ -3,6 +3,9 @@ :: Compiled binaries will be placed in BINARIES_DIR\code\CONFIG +:: NOTE +:: The build process will generate a config.h file that is placed in BINARIES_DIR\include + SET SOURCE_DIR=. :: For generators see "cmake --help" From a16645f3f73c40896d60665489a77c8ac97d28cb Mon Sep 17 00:00:00 2001 From: RumbleballTheReal <41473331+RumbleballTheReal@users.noreply.github.com> Date: Mon, 9 Sep 2019 21:20:44 +0200 Subject: [PATCH 3/3] Update BUILDBINARIES_EXAMPLE.bat --- BUILDBINARIES_EXAMPLE.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BUILDBINARIES_EXAMPLE.bat b/BUILDBINARIES_EXAMPLE.bat index 0841a83e8..2dd13a542 100644 --- a/BUILDBINARIES_EXAMPLE.bat +++ b/BUILDBINARIES_EXAMPLE.bat @@ -5,6 +5,9 @@ :: NOTE :: The build process will generate a config.h file that is placed in BINARIES_DIR\include +:: This file must be merged with SOURCE_DIR\include +:: You should write yourself a script that copies the files where you want them. +:: Also see: https://github.com/assimp/assimp/pull/2646 SET SOURCE_DIR=.