CMakeLists.txt 504 Bytes
Newer Older
1
2
3
project("amdis_demo")
cmake_minimum_required(VERSION 2.8)

Thomas Witkowski's avatar
Thomas Witkowski committed
4
5
#find_package(AMDIS REQUIRED COMPONENTS umfpack )
find_package(AMDIS REQUIRED)
6

Thomas Witkowski's avatar
Thomas Witkowski committed
7
if(AMDIS_FOUND)
8
	message("amdis was found\n")
Thomas Witkowski's avatar
Thomas Witkowski committed
9
10
11
	include(${AMDIS_USE_FILE})
	SET(BASIS_LIBS ${AMDIS_LIBRARIES})
endif(AMDIS_FOUND)
12

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

#create the output dir
file(MAKE_DIRECTORY output)