diff --git a/CMakeLists.txt b/CMakeLists.txt index f8dd4eb..f7394fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,12 @@ add_subdirectory(pybind11) include_directories(src/tools) +if(MSVC) + add_compile_options(/openmp:llvm) +else() + add_compile_options(-fopenmp) +endif() + file(GLOB SRC CONFIGURE_DEPENDS src/*.cpp src/*.h src/*.hpp) add_executable(${PROJECT_NAME}_bin ${SRC})