CREA_PREVENT_IN_SOURCE_BUILD()
-#SET(USE_GDCM ON)
-#SET(USE_GDCM_VTK ON)
-SET(USE_WXWIDGETS ON)
-SET(USE_VTK ON)
-SET(USE_BOOST ON)
+#SET(USE_GDCM ON)
+#SET(USE_GDCM_VTK ON)
+SET(USE_WXWIDGETS ON)
+SET(USE_VTK ON)
+SET(USE_BOOST ON)
+SET(USE_OPENMP ON)
OPTION(QT_USE_QTUITOOLS "QT_USE_QTUITOOLS" OFF)
IF(QT_USE_QTUITOOLS)
ENDIF(WIN32)
-#. ---- MacOs ---------
-#EED /Library/Developer/CommandLineTools/usr/bin/c++
-#EED FLAGS C++ : -Xpreprocessor -fopenmp
-# http://secomparteosepierde.blogspot.com/2019/04/how-to-install-openmp-on-mac-using.html
-# https://stackoverflow.com/questions/23554716/using-openmp-on-windows-with-mingw-cannot-find-lpthread
-#You need -Xpreprocessor flag to use -fopenmp flag
-#
-# sudo port install libomp-devel
-# sudo port -f activate libomp-devel
-
-##. This cmake code is not working ?????? MacOs..
-
-message(STATUS "Checking OpenMP")
-find_package(OpenMP )
-if(OpenMP_CXX_FOUND)
- message("OpenMP. Yessssssss")
-endif()
-IF(OPENMP_FOUND)
- message("Found OpenMP! ^_^")
- # add flags for OpenMP
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
- set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${OpenMP_SHARED_LINKER_FLAGS}")
- set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
-ELSE()
- message("Missed OpenMP! :(")
-ENDIF()
-
### vtkgdcm
#1)
-
#===========================================================================
SET(${BBTK_PACKAGE_NAME}_LIBS
# LIST HERE THE ADDITIONAL LIBS TO LINK AGAINST
# EXCEPT : the same libs than for INCLUDE_DIRS
### ${MYSQL_LIBRARIES}
+
+ ${OpenMP_libomp_LIBRARY_crea}
+
creaMaracasVisu
BaseVolumeRenderer
### ILPDInterface
### ILPDcontrolerInterface
+
)
#===========================================================================