Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

CMakeLists.txt 1.0 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
  1. #
  2. # Copyright (C) 2023, Inria
  3. # GRAPHDECO research group, https://team.inria.fr/graphdeco
  4. # All rights reserved.
  5. #
  6. # This software is free for non-commercial, research and evaluation use
  7. # under the terms of the LICENSE.md file.
  8. #
  9. # For inquiries contact george.drettakis@inria.fr
  10. #
  11. cmake_minimum_required(VERSION 3.20)
  12. project(DiffRast LANGUAGES CUDA CXX)
  13. set(CMAKE_CXX_STANDARD 17)
  14. set(CMAKE_CXX_EXTENSIONS OFF)
  15. set(CMAKE_CUDA_STANDARD 17)
  16. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
  17. add_library(CudaRasterizer
  18. cuda_rasterizer/backward.h
  19. cuda_rasterizer/backward.cu
  20. cuda_rasterizer/forward.h
  21. cuda_rasterizer/forward.cu
  22. cuda_rasterizer/auxiliary.h
  23. cuda_rasterizer/rasterizer_impl.cu
  24. cuda_rasterizer/rasterizer_impl.h
  25. cuda_rasterizer/rasterizer.h
  26. )
  27. set_target_properties(CudaRasterizer PROPERTIES CUDA_ARCHITECTURES "70;75;86")
  28. target_include_directories(CudaRasterizer PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/cuda_rasterizer)
  29. target_include_directories(CudaRasterizer PRIVATE third_party/glm ${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...