This commit is contained in:
Zengtudor 2024-09-22 17:11:31 +08:00
parent 4b8dc0884b
commit 878d3c0574

View File

@ -19,8 +19,10 @@ if(MSVC)
add_compile_options(/openmp:llvm) add_compile_options(/openmp:llvm)
else() else()
add_compile_options(-fopenmp) add_compile_options(-fopenmp)
link_libraries(gomp)
endif() endif()
file(GLOB SRC CONFIGURE_DEPENDS src/*.cpp src/*.h src/*.hpp) file(GLOB SRC CONFIGURE_DEPENDS src/*.cpp src/*.h src/*.hpp)
add_executable(${PROJECT_NAME}_bin ${SRC}) add_executable(${PROJECT_NAME}_bin ${SRC})