-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
70 lines (42 loc) · 1.78 KB
/
CMakeLists.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 3.27)
set(CMAKE_CXX_STANDARD 20)
# set(CMAKE_CXX_EXTENSIONS OFF)
# set(CMAKE_CUDA_STANDARD 20)
# set(CMAKE_CXX_STANDARD 17)
# set(CMAKE_CXX_EXTENSIONS OFF)
# set(CMAKE_CUDA_STANDARD 17)
# set(CMAKE_CUDA_ARCHITECTURES 86)
# set(CMAKE_CUDA_COMPILER /usr/local/cuda/bin/nvcc)
# project(MCGS LANGUAGES CXX CUDA)
project(MCGS LANGUAGES CXX )
#project(MCGS LANGUAGES CXX CUDA)
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
file(GLOB_RECURSE SRC ${PROJECT_SOURCE_DIR}/src/GSContext.cpp)
add_library(src ${SRC})
message(STATUS ${SRC})
target_include_directories(src PUBLIC ${PROJECT_SOURCE_DIR}/include)
set(MCRT_DIR MCRT/cmake)
find_package(MCRT REQUIRED)
target_link_libraries(src PUBLIC MCRT)
# file(GLOB_RECURSE MCRT_SRC ${PROJECT_SOURCE_DIR}/MCRT/src/*.cpp )
# add_library(mcrt_src ${MCRT_SRC})
# # std::foreach using tbb
# # find_package(TBB REQUIRED COMPONENTS tbb)
# set (MCRT_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/MCRT ${PROJECT_SOURCE_DIR}/MCRT/example/base ${PROJECT_SOURCE_DIR}/MCRT/include ${PROJECT_SOURCE_DIR}/MCRT/include/Tool)
# target_include_directories(mcrt_src PUBLIC ${MCRT_INCLUDE_DIRS})
# # include(MCRT/cmake/FindVulkan.cmake)
# # include(MCRT/cmake/FindGLFW.cmake)
# # include(MCRT/cmake/FindIMGUI.cmake)
# include_directories(${PROJECT_SOURCE_DIR}/include)
# link_libraries(src)
# IF (WIN32)
# target_link_libraries(imgui glfw Vulkan)pp
# ELSEIF (UNIX)
# # in linux link Vulkan::Vulkan
# target_link_libraries(imgui glfw Vulkan::Vulkan)
# ENDIF ()
# target_link_libraries(imgui PUBLIC glfw Vulkan::Vulkan)
# target_include_directories(imgui PUBLIC ${MCRT_INCLUDE_DIRS})
# # find_package(TBB REQUIRED COMPONENTS tbb)
# target_link_libraries(mcrt_src PUBLIC imgui assimp)
add_subdirectory(${PROJECT_SOURCE_DIR}/app)