File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ include(GNUInstallDirs)
1010include (CTest )
1111
1212option (IS_UTF8_SANITIZE "Sanitize addresses" OFF )
13+ option (IS_UTF8_BENCHMARKS "Build benchmarks" ${PROJECT_IS_TOP_LEVEL} )
1314
1415if (NOT CMAKE_BUILD_TYPE )
1516 message (STATUS "No build type selected, default to Release" )
4243 message (STATUS "The tests are disabled." )
4344endif (BUILD_TESTING )
4445
45-
46- add_subdirectory (benchmarks )
46+ if (IS_UTF8_BENCHMARKS)
47+ add_subdirectory (benchmarks )
48+ endif ()
4749
4850message (STATUS "Compiling using the C++ standard:" ${CMAKE_CXX_STANDARD } )
4951# ---- Install rules ----
8890)
8991mark_as_advanced (IS_UTF8_INSTALL_CMAKEDIR )
9092
93+ install (
94+ EXPORT is_utf8Targets
95+ DESTINATION "${IS_UTF8_INSTALL_CMAKEDIR} "
96+ NAMESPACE is_utf8::
97+ )
98+
9199install (
92100 FILES
93101 "${PROJECT_BINARY_DIR } /is_utf8-config.cmake"
You can’t perform that action at this time.
0 commit comments