cmake_minimum_required(VERSION 3.13.4) find_package(deal.II 9.5.0 REQUIRED HINTS ${DEAL_II_DIR} ../ ../../ $ENV{DEAL_II_DIR} ) deal_ii_initialize_cached_variables() project(myproject) add_executable(mycode mycode.cc) deal_ii_setup_target(mycode)