project("amdis_demo") cmake_minimum_required(VERSION 2.8) #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) file(GLOB sources src/*.cc) foreach(s ${sources}) get_filename_component(swe ${s} NAME_WE) add_executable(${swe} ${s}) target_link_libraries(${swe} ${BASIS_LIBS}) install(TARGETS ${swe} RUNTIME DESTINATION bin ) endforeach(s) #create the output dir file(MAKE_DIRECTORY output)