-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
35 lines (26 loc) · 938 Bytes
/
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
cmake_minimum_required(VERSION 3.20)
project(Solid_Sim_Muda LANGUAGES CXX CUDA)
option(BUILD_SHARED_LIBS "Build shared libraries" OFF)
# set MUDA_BUILD_EXAMPLE to OFF for the subdirectory
set(MUDA_BUILD_EXAMPLE OFF CACHE BOOL "" FORCE)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
add_subdirectory(muda)
include(FetchContent)
FetchContent_Declare(SFML
GIT_REPOSITORY https://github.com/SFML/SFML.git
GIT_TAG 2.6.x)
FetchContent_MakeAvailable(SFML)
set(CMAKE_CUDA_ARCHITECTURES 75)
set(CMAKE_CXX_STANDARD 17)
find_package(Eigen3 REQUIRED )
if(Eigen3_FOUND)
message(STATUS "Eigen3 found (include: ${EIGEN3_INCLUDE_DIR}, version: ${EIGEN3_VERSION_STRING})")
else()
message(FATAL_ERROR "Eigen3 not found")
endif()
include_directories(${EIGEN3_INCLUDE_DIR})
include_directories(/usr/include)
add_subdirectory(simulators)
add_compile_options(/W4)
add_compile_options(/wd4100)
add_compile_options(/wd4244)