You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
option(BAGUARDS_EXAMPLES "Build the examples"${BAGUARDS_IS_ROOT_PROJECT})
14
-
option(BAGUARDS_BENCH "Build the benchmarks"${BAGUARDS_IS_ROOT_PROJECT})
15
-
option(BAGUARDS_FORCE_ENABLE "Build with BAD_ACCESS_GUARDS_ENABLE=1 defined."${BAGUARDS_IS_ROOT_PROJECT})
13
+
############################
14
+
## Modules and scripts ##
15
+
############################
16
16
17
+
include(GNUInstallDirs) # This will define the default values for installation directories (all platforms even if named GNU)
18
+
#include(InstallRequiredSystemLibraries) # Tell CMake that the `install` target needs to install required system libraries (eg: Windows SDK)
19
+
include(CMakePackageConfigHelpers) # Helper to create relocatable packages
20
+
21
+
###############
22
+
## OPTIONS ##
23
+
###############
24
+
25
+
option(${PROJECT_NAME}_EXAMPLES "Build the examples" ${${PROJECT_NAME}_IS_ROOT_PROJECT})
26
+
option(${PROJECT_NAME}_BENCH "Build the benchmarks" ${${PROJECT_NAME}_IS_ROOT_PROJECT})
27
+
option(${PROJECT_NAME}_FORCE_ENABLE "Build with BAD_ACCESS_GUARDS_ENABLE=1 defined." ${${PROJECT_NAME}_IS_ROOT_PROJECT})
28
+
option(${PROJECT_NAME}_INSTALL "Should ${PROJECT_NAME} be added to the install list? Useful if included using add_subdirectory." ${${PROJECT_NAME}_IS_ROOT_PROJECT})
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/src> # Due to the way installation work, we only want this path set when building, not once installed
0 commit comments