0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MPIをCMakeでリンク

Last updated at Posted at 2020-05-09

#拝啓
本質でないところで苦労している人のために

#概要
MPIのライブラリのリンクについての記事があまり期待できたものでなかった(自分にとって)ので自身のものを共有しときます。

cmake_minimum_required(VERSION 3.9)
project(MYTARGET1 CXX)

find_package(MYTARGET1 REQUIRED)

add_definitions(-DOMPI_SKIP_MPICXX)

add_library(MYTARGET1 SHARED Test1.cpp)
target_link_libraries(MYTARGET1 PUBLIC MPI::MPI_CXX)

add_executable(MYTARGET2 Test2.cpp)

target_link_libraries(MYTARGET2 BLAU)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?