CMakeLists.txt 638 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
project(amdis-plugins)

cmake_minimum_required(VERSION 2.8)
include_directories(../src/ ../lib/mtl4/ ../lib/UMFPACK/Include ../lib/AMD/Include ../lib/UFconfig/ )
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/../ 
		${CMAKE_CURRENT_SOURCE_DIR}/../lib/UMFPACK/Lib/
		${CMAKE_CURRENT_SOURCE_DIR}/../lib/AMD/Lib/)
add_library(amdis-umfpack SHARED src/umfpack.cpp)
target_link_libraries(amdis-umfpack umfpack amd blas)


add_executable(use src/use.cpp)
target_link_libraries(use dl amdis boost_iostreams boost_system)
#amdis was compiled with openmp -> needed openmp for the application also.
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")