cmake_minimum_required(VERSION 3.16 FATAL_ERROR) project(omnitrace-examples LANGUAGES C CXX) set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF) set(CMAKE_CXX_VISIBILITY_PRESET "default") set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_CLANG_TIDY) option(BUILD_SHARED_LIBS "Build dynamic libraries" ON) if(CMAKE_PROJECT_NAME STREQUAL "omnitrace") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) omnitrace_add_option(OMNITRACE_INSTALL_EXAMPLES "Install omnitrace examples" OFF) else() option(OMNITRACE_INSTALL_EXAMPLES "Install omnitrace examples" ON) endif() if(OMNITRACE_INSTALL_EXAMPLES) include(GNUInstallDirs) endif() add_subdirectory(transpose) add_subdirectory(parallel-overhead) add_subdirectory(code-coverage) add_subdirectory(user-api) add_subdirectory(openmp) add_subdirectory(mpi) add_subdirectory(python) add_subdirectory(lulesh)