Comhaid
rocm-systems/examples/python/CMakeLists.txt
T
Jonathan R. Madsen 3f3ef7ddf9 Python noprofile (#138)
* Fixed noprofile / FakeProfiler

- omnitrace.libpyomnitrace.profiler.profiler_pause()
- omnitrace.libpyomnitrace.profiler.profiler_resume()

* Python tests for noprofile

* Remove static imported module
2022-08-16 19:28:58 -05:00

21 línte
657 B
CMake

cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
project(omnitrace-python)
set(PYTHON_FILES builtin.py external.py source.py noprofile.py)
if(OMNITRACE_INSTALL_EXAMPLES)
find_package(Python3 COMPONENTS Interpreter)
if(Python3_FOUND)
set(PYTHON_EXECUTABLE "${Python3_EXECUTABLE}")
foreach(_FILE ${PYTHON_FILES})
configure_file(${PROJECT_SOURCE_DIR}/${_FILE} ${PROJECT_BINARY_DIR}/${_FILE}
@ONLY)
install(
PROGRAMS ${PROJECT_BINARY_DIR}/${_FILE}
DESTINATION bin
COMPONENT omnitrace-examples)
endforeach()
endif()
endif()