6daac0f60c
* Initial python support
* Add python testing
* Increase timeout for bin tests
* cmake-format
* Valid build types + testing + formatting + more
- Enforce valid build types
- Fix to numpy install
- Increase testing timeout
- Fix to cmake format glob
- Fix to backtrace verbose
* Disable stripping libraries by default
* omnitrace exe updates
- new '--print-instructions' option
- changed format of instructions in JSON
- remove no-save-fpr tests
* Default to strip libraries when release build
[ROCm/rocprofiler-systems commit: afa3edebab]
29 řádky
809 B
CMake
29 řádky
809 B
CMake
if(NOT DEFINED CMAKE_INTERPROCEDURAL_OPTIMIZATION)
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION OFF)
|
|
endif()
|
|
|
|
if(OMNITRACE_BUILD_LTO)
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION ON)
|
|
endif()
|
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
|
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
|
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR})
|
|
|
|
add_subdirectory(lib)
|
|
add_subdirectory(bin)
|
|
|
|
if(OMNITRACE_USE_PYTHON)
|
|
add_subdirectory(python)
|
|
endif()
|
|
|
|
if(OMNITRACE_BUILD_DEVELOPER)
|
|
add_custom_target(omnitrace-precommit)
|
|
foreach(_TARGET format-omnitrace-source format-omnitrace-cmake format-timemory-source
|
|
format-timemory-cmake)
|
|
if(TARGET ${_TARGET})
|
|
add_dependencies(omnitrace-precommit ${_TARGET})
|
|
endif()
|
|
endforeach()
|
|
endif()
|