23 lines
587 B
CMake
23 lines
587 B
CMake
|
find_package(Qt6 COMPONENTS Core REQUIRED)
|
||
|
find_package(OpenMP)
|
||
|
|
||
|
if (OPENMP_FOUND)
|
||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
|
||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
|
||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
|
||
|
endif ()
|
||
|
|
||
|
add_executable(task5-chpt4ex4)
|
||
|
|
||
|
target_include_directories(task5-chpt4ex4 PRIVATE
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||
|
|
||
|
target_sources(task5-chpt4ex4 PRIVATE
|
||
|
src/main.cpp
|
||
|
)
|
||
|
|
||
|
|
||
|
target_link_libraries(task4-monitor PRIVATE
|
||
|
Qt6::Core
|
||
|
OpenMP::OpenMP_CXX)
|