File tree 1 file changed +14
-11
lines changed
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ set(CMAKE_CXX_STANDARD 20)
7
7
8
8
option (BENONI_TESTS "Build the Benoni tests" OFF )
9
9
option (BENONI_EXAMPLES "Build the Benoni examples" OFF )
10
+ option (BENONI_INSTALL "Install Benoni" ON )
10
11
11
12
if (APPLE )
12
13
add_subdirectory (src/apple )
@@ -17,19 +18,21 @@ elseif(UNIX)
17
18
add_subdirectory (src/linux)
18
19
endif ()
19
20
20
- set_target_properties (benoni PROPERTIES PUBLIC_HEADER include /benoni/http.h)
21
+ set_target_properties (benoni PROPERTIES PUBLIC_HEADER ${PROJECT_SOURCE_DIR} / include /benoni/http.h)
21
22
22
- include (GNUInstallDirs)
23
+ if (BENONI_INSTALL)
24
+ include (GNUInstallDirs)
23
25
24
- install (TARGETS benoni
25
- EXPORT benoni
26
- PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /${PROJECT_NAME} "
27
- COMPONENT benoni
28
- ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR} "
29
- COMPONENT benoni)
30
- install (EXPORT benoni
31
- DESTINATION "${CMAKE_INSTALL_DATADIR} /${PROJECT_NAME} /cmake"
32
- COMPONENT benoni)
26
+ install (TARGETS benoni
27
+ EXPORT benoni
28
+ PUBLIC_HEADER DESTINATION "${CMAKE_INSTALL_INCLUDEDIR} /${PROJECT_NAME} "
29
+ COMPONENT benoni
30
+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR} "
31
+ COMPONENT benoni)
32
+ install (EXPORT benoni
33
+ DESTINATION "${CMAKE_INSTALL_DATADIR} /${PROJECT_NAME} /cmake"
34
+ COMPONENT benoni)
35
+ endif ()
33
36
34
37
if (BENONI_EXAMPLES)
35
38
add_subdirectory (examples)
You can’t perform that action at this time.
0 commit comments