ladybird/Userland/CMakeLists.txt

30 lines
1.1 KiB
CMake
Raw Normal View History

add_compile_options(-O2)
# 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()
add_subdirectory(Applications)
2021-01-12 14:00:09 +03:00
add_subdirectory(Demos)
2021-01-12 14:18:55 +03:00
add_subdirectory(DevTools)
add_subdirectory(DynamicLoader)
2021-01-12 14:03:28 +03:00
add_subdirectory(Games)
2021-01-12 14:17:30 +03:00
add_subdirectory(Libraries)
add_subdirectory(BuggieBox)
add_subdirectory(Applets)
2021-01-12 14:23:01 +03:00
add_subdirectory(Services)
2021-01-12 13:53:14 +03:00
add_subdirectory(Shell)
add_subdirectory(Utilities)