cmake: add the forgotten OpenMP flags and libs.

This commit is contained in:
2018-06-09 21:13:58 +02:00
parent 104d18c333
commit 89b7eb8faa
3 changed files with 31 additions and 3 deletions

View File

@ -80,9 +80,19 @@ target_include_directories(
)
#--- add library dependencies -------------------------------------------------
if (OpenMP_FOUND)
target_compile_options(FitPofB PUBLIC ${OpenMP_CXX_FLAGS})
endif (OpenMP_FOUND)
set(gomp "")
if (OpenMP_FOUND AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux))
set(gomp gomp)
endif (OpenMP_FOUND AND (${CMAKE_HOST_SYSTEM_NAME} STREQUAL Linux))
target_link_libraries(FitPofB
${gomp}
${FFTW3_LIBRARY} ${FFTW3F_LIBRARY} ${ROOT_LIBRARIES}
TLemRunHeader PUserFcnBase BMWtools)
TLemRunHeader PUserFcnBase BMWtools
)
#--- install FitPofB solib ----------------------------------------------------
install(TARGETS FitPofB DESTINATION lib)