Created
May 22, 2020 14:00
-
-
Save iKrishneel/6071ace25d721c133789800732ac5bbd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_CXX_STANDARD 14) | |
find_package(OpenMP) | |
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}") | |
set(SOURCE_FILES main.cpp) | |
add_executable(main ${SOURCE_FILES}) | |
target_link_libraries(main PUBLIC OpenMP::OpenMP_CXX) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment