CMakeLists.txt 529 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
project("amdis_demo")
cmake_minimum_required(VERSION 2.8)

#SET(AMDiS_DIR ../AMDiS)
#find_package(AMDiS REQUIRED COMPONENTS umfpack )
find_package(AMDiS REQUIRED)

if(AMDiS_FOUND)
	message("amdis was found\n")
	include(${AMDiS_USE_FILE})
	SET(BASIS_LIBS ${AMDiS_LIBRARIES})
endif(AMDiS_FOUND)

14
15
16
file(GLOB sources src/*.cc)
foreach(s ${sources})
  get_filename_component(swe ${s} NAME_WE)
Naumann, Andreas's avatar
Naumann, Andreas committed
17
18
  add_executable(${swe} ${s})
  target_link_libraries(${swe} ${BASIS_LIBS})
19
endforeach(s)
20
21
22

#create the output dir
file(MAKE_DIRECTORY output)