e40f11b1fc
* Fixed noprofile / FakeProfiler
- omnitrace.libpyomnitrace.profiler.profiler_pause()
- omnitrace.libpyomnitrace.profiler.profiler_resume()
* Python tests for noprofile
* Remove static imported module
[ROCm/rocprofiler-systems commit: 3f3ef7ddf9]
21 lines
657 B
CMake
21 lines
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()
|