Files
rocm-systems/examples/CMakeLists.txt
T

34 lines
1010 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
2021-08-06 13:08:57 -05:00
project(omnitrace-examples LANGUAGES C CXX)
2021-08-06 13:08:57 -05:00
2021-09-29 18:16:13 -05:00
set(CMAKE_VISIBILITY_INLINES_HIDDEN OFF)
set(CMAKE_CXX_VISIBILITY_PRESET "default")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
2022-05-25 14:18:55 -05:00
set(CMAKE_CXX_CLANG_TIDY)
2022-05-25 14:18:55 -05:00
option(BUILD_SHARED_LIBS "Build dynamic libraries" ON)
2021-09-29 18:16:13 -05:00
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()
2021-08-06 13:08:57 -05:00
add_subdirectory(transpose)
add_subdirectory(parallel-overhead)
2022-04-25 17:00:52 -05:00
add_subdirectory(code-coverage)
2022-03-07 20:40:48 -06:00
add_subdirectory(user-api)
add_subdirectory(openmp)
2022-04-27 16:58:45 -05:00
add_subdirectory(mpi)
add_subdirectory(python)
2022-05-25 14:18:55 -05:00
add_subdirectory(lulesh)