File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,15 @@ elseif(UNIX) # This includes OSX
71
71
option (BUILD_SHARED_LIBS "Build shared Libraries." ON )
72
72
option (BUILD_TESTS "Build tests." ON )
73
73
option (BUILD_SAMPLES "Build samples." ON )
74
+ option (CASA_INSTALL_HEADERS "Install header files." ON )
75
+ if (CASA_INSTALL_HEADERS )
76
+ file (GLOB_RECURSE CASA_HEADERS_CPPREST include /cpprest/*.hpp include /cpprest/*.h )
77
+ install (FILES ${CASA_HEADERS_CPPREST} DESTINATION include /cpprest )
78
+ file (GLOB_RECURSE CASA_HEADERS_PPLX include /pplx/*.hpp include /pplx/*.h )
79
+ install (FILES ${CASA_HEADERS_PPLX} DESTINATION include /pplx )
80
+ file (GLOB_RECURSE CASA_HEADERS_COMPAT include /compat/*.hpp include /compat/*.h )
81
+ install (FILES ${CASA_HEADERS_COMPAT} DESTINATION include /compat )
82
+ endif ()
74
83
elseif (WIN32 )
75
84
option (BUILD_SHARED_LIBS "Build shared Libraries." ON )
76
85
option (BUILD_TESTS "Build tests." ON )
@@ -169,4 +178,3 @@ endif()
169
178
if (BUILD_SAMPLES )
170
179
add_subdirectory (samples )
171
180
endif ()
172
-
Original file line number Diff line number Diff line change @@ -108,4 +108,6 @@ elseif(ANDROID)
108
108
else ()
109
109
set_target_properties (${Casablanca_LIBRARY} PROPERTIES
110
110
SOVERSION ${CPPREST_VERSION_MAJOR} .${CPPREST_VERSION_MINOR} )
111
+
112
+ install (TARGETS ${Casablanca_LIBRARY} LIBRARY DESTINATION lib )
111
113
endif ()
You can’t perform that action at this time.
0 commit comments