Path: blob/master/Help/guide/tutorial/Step7/CMakeLists.txt
5017 views
cmake_minimum_required(VERSION 3.23)12project(Tutorial)34option(TUTORIAL_BUILD_UTILITIES "Build the Tutorial executable" ON)5option(TUTORIAL_USE_STD_SQRT "Use std::sqrt" OFF)6option(TUTORIAL_ENABLE_IPO "Check for and use IPO support" ON)78if(TUTORIAL_ENABLE_IPO)9include(CheckIPOSupported)10check_ipo_supported(RESULT result OUTPUT output)11if(result)12message("IPO is supported, enabling IPO")13set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)14else()15message(WARNING "IPO is not supported: ${output}")16endif()17endif()181920if(TUTORIAL_BUILD_UTILITIES)21add_subdirectory(Tutorial)22endif()2324add_subdirectory(MathFunctions)252627