AtomicWindows.cmake 647 B

123456789101112131415161718
  1. include(AtomicDesktop)
  2. #set (CMAKE_DEBUG_POSTFIX _d)
  3. set (D3DCOMPILER_47_DLL ${CMAKE_SOURCE_DIR}/Build/Windows/Binaries/x64/D3DCompiler_47.dll)
  4. add_definitions(-DATOMIC_PLATFORM_WINDOWS -D_CRT_SECURE_NO_WARNINGS -DATOMIC_TBUI)
  5. list (APPEND ATOMIC_LINK_LIBRARIES MojoShader user32 gdi32 winmm imm32 ole32 oleaut32 version uuid d3d9 d3dcompiler Ws2_32)
  6. # compile with static runtime
  7. set(CompilerFlags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE CMAKE_C_FLAGS CMAKE_C_FLAGS_DEBUG CMAKE_C_FLAGS_RELEASE)
  8. foreach(CompilerFlag ${CompilerFlags})
  9. string(REPLACE "/MD" "/MT" ${CompilerFlag} "${${CompilerFlag}}")
  10. endforeach()