Skip to content
Snippets Groups Projects
Commit 5719eb36 authored by Lars Bilke's avatar Lars Bilke
Browse files

Moved find statements to Find.cmake.

parent 67c0a3fb
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,8 @@ ADD_SUBDIRECTORY( MeshLib )
ADD_SUBDIRECTORY( OGS )
ADD_SUBDIRECTORY( SimpleTests/MatrixTests )
ADD_SUBDIRECTORY( SimpleTests/MeshTests )
IF(NOT MSVC)
ADD_SUBDIRECTORY( SimpleTests/SolverTests )
ENDIF(NOT MSVC)
IF(NOT MSVC AND BLAS_FOUND AND LAPACK_FOUND)
ADD_SUBDIRECTORY( SimpleTests/SolverTests )
ENDIF()
CONFIGURE_FILE (BaseLib/BuildInfo.h.in ${PROJECT_BINARY_DIR}/BaseLib/BuildInfo.h)
## pthread ##
SET ( CMAKE_THREAD_PREFER_PTHREAD On )
IF (WIN32)
SET ( ADDITIONAL_LIBS Winmm.lib )
ENDIF()
FIND_PACKAGE( Threads )
IF ( CMAKE_USE_PTHREADS_INIT )
SET (HAVE_PTHREADS TRUE)
MESSAGE (STATUS "pthread library found." )
ENDIF (CMAKE_USE_PTHREADS_INIT )
INCLUDE_DIRECTORIES(
......
## pthread ##
SET ( CMAKE_THREAD_PREFER_PTHREAD On )
FIND_PACKAGE( Threads )
# Find blas
FIND_PACKAGE ( BLAS REQUIRED )
# Find lapack
FIND_PACKAGE ( LAPACK REQUIRED )
IF ( CMAKE_USE_PTHREADS_INIT )
SET (HAVE_PTHREADS TRUE)
MESSAGE (STATUS "pthread library found." )
ENDIF (CMAKE_USE_PTHREADS_INIT )
INCLUDE_DIRECTORIES(
.
../../BaseLib/
......
......@@ -45,3 +45,16 @@ IF ( QT4_FOUND )
INCLUDE( ${QT_USE_FILE} )
ADD_DEFINITIONS(${QT_DEFINITIONS})
ENDIF (QT4_FOUND )
## pthread ##
SET ( CMAKE_THREAD_PREFER_PTHREAD ON )
FIND_PACKAGE ( Threads )
IF ( CMAKE_USE_PTHREADS_INIT )
SET (HAVE_PTHREADS TRUE)
ENDIF (CMAKE_USE_PTHREADS_INIT )
# blas
FIND_PACKAGE ( BLAS )
# lapack
FIND_PACKAGE ( LAPACK )
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment