KrakatoaSR Examples build Windows 10

Hi everyone; I’ve managed to build Krakatoa SR using the contributing.md.

I’m running into some issues getting the examples to build. I’m assuming this is a user error on my part, but was hoping someone could point me in the right direction. For reference I’m on windows 10, VS2019 16.11.44. Any help would be greatly appreciated.

First when I enable BUILD_EXAMPLES and build I get the following error

CMake Error at CMakeLists.txt:95 (add_subdirectory):
  The source directory

    C:/Users/Local Admin/.conan/data/krakatoasr/1.0.1/_/_/build/baa25ad48e5a76f10241342aa168a3424d1718e3/Example

  does not contain a CMakeLists.txt file.


-- Configuring incomplete, errors occurred!
See also "C:/Users/Local Admin/.conan/data/krakatoasr/1.0.1/_/_/build/baa25ad48e5a76f10241342aa168a3424d1718e3/CMakeFiles/CMakeOutput.log".

No problem I’ll just try to build an example with CL

$cl Example/example01.cpp /Fe:Example/example01.exe

That gets me a wall of errors:

Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30158 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.

example01.cpp
Example/example01.cpp(18): warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
Microsoft (R) Incremental Linker Version 14.29.30158.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:Example/example01.exe
example01.obj
   Creating library Example\example01.lib and object Example\example01.exp
example01.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall krakatoasr::light::~light(void)" (??1light@krakatoasr@@UAE@XZ) referenced in function "public: virtual __thiscall krakatoasr::direct_light::~direct_light(void)" (??1direct_light@krakatoasr@@UAE@XZ)
example01.obj : error LNK2019: unresolved external symbol "public: __thiscall krakatoasr::light::light(class krakatoasr::light const &)" (??0light@krakatoasr@@QAE@ABV01@@Z) referenced in function "public: __thiscall krakatoasr::direct_light::direct_light(class krakatoasr::direct_light &&)" (??0direct_light@krakatoasr@@QAE@$$QAV01@@Z)
example01.obj : error LNK2019: unresolved external symbol "public: class krakatoasr::light & __thiscall krakatoasr::light::operator=(class krakatoasr::light const &)" (??4light@krakatoasr@@QAEAAV01@ABV01@@Z) referenced in function "public: class krakatoasr::direct_light & __thiscall krakatoasr::direct_light::operator=(class krakatoasr::direct_light &&)" (??4direct_light@krakatoasr@@QAEAAV01@$$QAV01@@Z)
example01.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall krakatoasr::direct_light::set_defaults(void)" (?set_defaults@direct_light@krakatoasr@@UAEXXZ)
example01.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall krakatoasr::spot_light::set_defaults(void)" (?set_defaults@spot_light@krakatoasr@@UAEXXZ)
example01.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall krakatoasr::point_light::set_defaults(void)" (?set_defaults@point_light@krakatoasr@@UAEXXZ)
example01.obj : error LNK2019: unresolved external symbol "public: __thiscall krakatoasr::animated_transform::animated_transform(void)" (??0animated_transform@krakatoasr@@QAE@XZ) referenced in function _main
...
example01.obj : error LNK2019: unresolved external symbol "public: void __thiscall krakatoasr::krakatoa_renderer::set_render_save_callback(class krakatoasr::render_save_interface *)" (?set_render_save_callback@krakatoa_renderer@krakatoasr@@QAEXPAVrender_save_interface@2@@Z) referenced in function _main
example01.obj : error LNK2019: unresolved external symbol "public: bool __thiscall krakatoasr::krakatoa_renderer::render(void)" (?render@krakatoa_renderer@krakatoasr@@QAE_NXZ) referenced in function _main
Example\example01.exe : fatal error LNK1120: 67 unresolved externals