2021-02-24 11:30:19 +01:00
|
|
|
add_compile_options(-O2)
|
|
|
|
|
2022-03-04 18:02:09 -07:00
|
|
|
# Escape hatch target to prevent runtime startup libraries from having coverage enabled
|
|
|
|
# at awkward points in program initialization
|
|
|
|
add_library(NoCoverage INTERFACE)
|
|
|
|
|
|
|
|
if (ENABLE_USERSPACE_COVERAGE_COLLECTION)
|
|
|
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
|
|
|
add_compile_options(-fprofile-instr-generate -fcoverage-mapping)
|
|
|
|
add_link_options(-fprofile-instr-generate -fcoverage-mapping)
|
|
|
|
|
|
|
|
target_compile_options(NoCoverage INTERFACE -fno-profile-generate -fno-profile-instr-use -fno-profile-instr-generate -fno-coverage-mapping)
|
|
|
|
target_link_options(NoCoverage INTERFACE -fno-profile-generate -fno-profile-instr-use -fno-profile-instr-generate -fno-coverage-mapping)
|
|
|
|
else()
|
|
|
|
message(FATAL_ERROR "ENABLE_USERSPACE_COVERAGE_COLLECTION not supported yet for ${CMAKE_CXX_COMPILER_ID}")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-01-12 12:05:23 +01:00
|
|
|
add_subdirectory(Applications)
|
2021-01-12 12:00:09 +01:00
|
|
|
add_subdirectory(Demos)
|
2021-01-12 12:18:55 +01:00
|
|
|
add_subdirectory(DevTools)
|
2020-10-10 18:17:49 +03:00
|
|
|
add_subdirectory(DynamicLoader)
|
2021-01-12 12:03:28 +01:00
|
|
|
add_subdirectory(Games)
|
2021-01-12 12:17:30 +01:00
|
|
|
add_subdirectory(Libraries)
|
2021-04-04 12:25:01 +02:00
|
|
|
add_subdirectory(Applets)
|
2021-01-12 12:23:01 +01:00
|
|
|
add_subdirectory(Services)
|
2021-01-12 11:53:14 +01:00
|
|
|
add_subdirectory(Shell)
|
2021-01-12 11:57:58 +01:00
|
|
|
add_subdirectory(Utilities)
|