diff options
| author | mtamis <[email protected]> | 2017-02-28 18:24:59 +0100 |
|---|---|---|
| committer | mtamis <[email protected]> | 2017-02-28 18:24:59 +0100 |
| commit | 5581909a4d19db97304449f66404ff99a0429d3f (patch) | |
| tree | a90f7eb85c095a8aba45cf5e909c82c1cdbed77d /NvCloth/samples/compiler/cmake/windows/SampleBase.cmake | |
| parent | Fix cmake visual studio project generation (locate_gw_root.bat) (diff) | |
| download | nvcloth-5581909a4d19db97304449f66404ff99a0429d3f.tar.xz nvcloth-5581909a4d19db97304449f66404ff99a0429d3f.zip | |
Add visual samples.
Diffstat (limited to 'NvCloth/samples/compiler/cmake/windows/SampleBase.cmake')
| -rw-r--r-- | NvCloth/samples/compiler/cmake/windows/SampleBase.cmake | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/NvCloth/samples/compiler/cmake/windows/SampleBase.cmake b/NvCloth/samples/compiler/cmake/windows/SampleBase.cmake new file mode 100644 index 0000000..5cabf1e --- /dev/null +++ b/NvCloth/samples/compiler/cmake/windows/SampleBase.cmake @@ -0,0 +1,45 @@ +# +# Build SampleBase Windows +# + +FIND_PACKAGE(CUDA 8 REQUIRED) + +SET(SAMPLEBASE_PLATFORM_COMMON_FILES +) + +SET(SAMPLEBASE_PLATFORM_INCLUDES ${CUDA_INCLUDE_DIRS} +) + +SET(SAMPLEBASE_COMPILE_DEFS + # Common to all configurations + ${SAMPLES_SLN_COMPILE_DEFS} + + $<$<CONFIG:debug>:${SAMPLES_SLN_DEBUG_COMPILE_DEFS}> + $<$<CONFIG:checked>:${SAMPLES_SLN_CHECKED_COMPILE_DEFS}> + $<$<CONFIG:profile>:${SAMPLES_SLN_PROFILE_COMPILE_DEFS}> + $<$<CONFIG:release>:${SAMPLES_SLN_RELEASE_COMPILE_DEFS}> +) + +SET(SAMPLEBASE_LINK_FLAGS "/SUBSYSTEM:WINDOWS") + +SET(SAMPLEBASE_ADDITIONAL_DLLS "") + +#TODO: Move this to an external dep +if (CMAKE_CL_64) + SET(SHADOW_LIB ${NVCLOTH_ROOT_DIR}/samples/external/shadow_lib/GFSDK_ShadowLib_DX11.win64.lib) + SET(SHADOW_DLLS ${NVCLOTH_ROOT_DIR}/samples/external/shadow_lib/GFSDK_ShadowLib_DX11.win64.dll) + + SET(HBAO_LIB ${NVCLOTH_ROOT_DIR}/samples/external/hbao/GFSDK_SSAO_D3D11.win64.lib) + SET(HBAO_DLLS ${NVCLOTH_ROOT_DIR}/samples/external/hbao/GFSDK_SSAO_D3D11.win64.dll) + + SET(D3DCOMPILER_DLL "\"$(VC_ExecutablePath_x64_x64)/d3dcompiler_47.dll\"") +else() + SET(SHADOW_LIB ${NVCLOTH_ROOT_DIR}/samples/external/shadow_lib/GFSDK_ShadowLib_DX11.win32.lib) + SET(SHADOW_DLLS ${NVCLOTH_ROOT_DIR}/samples/external/shadow_lib/GFSDK_ShadowLib_DX11.win32.dll) + + SET(HBAO_LIB ${NVCLOTH_ROOT_DIR}/samples/external/hbao/GFSDK_SSAO_D3D11.win32.lib) + SET(HBAO_DLLS ${NVCLOTH_ROOT_DIR}/samples/external/hbao/GFSDK_SSAO_D3D11.win32.dll) + + SET(D3DCOMPILER_DLL "\"$(VC_ExecutablePath_x86_x86)/d3dcompiler_47.dll\"") +endif() + |