mirror of
https://gitlab.com/then-try-this/samplebrain.git
synced 2025-05-12 10:37:20 +00:00
added openmp to cmake
This commit is contained in:
parent
8e7a9abe1a
commit
fa44d2b4c7
@ -17,6 +17,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
find_package(QT NAMES Qt5 REQUIRED COMPONENTS Core)
|
||||
find_package(Qt5 REQUIRED COMPONENTS Gui Widgets)
|
||||
find_package(OpenMP)
|
||||
|
||||
add_executable(samplebrain WIN32 MACOSX_BUNDLE
|
||||
app/MainWindow.cpp app/MainWindow.h
|
||||
@ -64,6 +65,11 @@ target_link_libraries(samplebrain PRIVATE
|
||||
sndfile
|
||||
)
|
||||
|
||||
if(OpenMP_CXX_FOUND)
|
||||
target_link_libraries(samplebrain PUBLIC OpenMP::OpenMP_CXX)
|
||||
endif()
|
||||
|
||||
|
||||
# Resources:
|
||||
set(samplebrain_resource_files
|
||||
"app/images/at.png"
|
||||
|
Loading…
x
Reference in New Issue
Block a user