@@ -107,8 +107,8 @@ if (Boost_FOUND)
107
107
add_subdirectory (libs/network/src)
108
108
if (CPP-NETLIB_BUILD_TESTS)
109
109
add_subdirectory (deps/googletest)
110
- add_subdirectory (libs/network/test )
111
110
add_subdirectory (deps/uri/test )
111
+ add_subdirectory (libs/network/test )
112
112
endif (CPP-NETLIB_BUILD_TESTS)
113
113
if (CPP-NETLIB_BUILD_EXAMPLES)
114
114
add_subdirectory (libs/network/example)
@@ -123,39 +123,39 @@ enable_testing()
123
123
124
124
install (DIRECTORY boost DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
125
125
126
- ###
127
- ## Export Targets
128
- # (so cpp-netlib can be easily used by other CMake projects)
129
- # [see http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file]
130
-
131
- # Add all targets to the build-tree export set
132
- export (TARGETS cppnetlib-client-connections cppnetlib-server-parsers cppnetlib-uri
133
- FILE "${PROJECT_BINARY_DIR} /cppnetlibTargets.cmake" )
134
- # Export the package for use from the build-tree
135
- # (this registers the build-tree with a global CMake-registry)
136
- export (PACKAGE cppnetlib)
137
- # Create the cppnetlibConfig.cmake and cppnetlibConfigVersion files
138
- file (RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR} "
139
- "${CMAKE_INSTALL_FULL_INCLUDEDIR} " )
140
- # ... for the build tree
141
- set (CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR} " ${Boost_INCLUDE_DIRS} )
142
- configure_file (cppnetlibConfig.cmake.in
143
- "${PROJECT_BINARY_DIR} /cppnetlibConfig.cmake" @ONLY)
144
- # ... for the install tree
145
- set (CONF_INCLUDE_DIRS "\$ {CPPNETLIB_CMAKE_DIR}/${REL_INCLUDE_DIR} " )
146
- set (CONF_INCLUDE_DIRS ${CONF_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} )
147
- configure_file (cppnetlibConfig.cmake.in
148
- "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /cppnetlibConfig.cmake" @ONLY)
149
- # ... for both
150
- configure_file (cppnetlibConfigVersion.cmake.in
151
- "${PROJECT_BINARY_DIR} /cppnetlibConfigVersion.cmake" @ONLY)
152
- # Install the cppnetlibConfig.cmake and cppnetlibConfigVersion.cmake
153
- install (FILES
154
- "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /cppnetlibConfig.cmake"
155
- "${PROJECT_BINARY_DIR} /cppnetlibConfigVersion.cmake"
156
- DESTINATION "${INSTALL_CMAKE_DIR} "
157
- COMPONENT dev)
158
- # Install the export set for use with the install-tree
159
- install (EXPORT cppnetlibTargets
160
- DESTINATION "${INSTALL_CMAKE_DIR} "
161
- COMPONENT dev)
126
+ # # ##
127
+ # # # Export Targets
128
+ # # (so cpp-netlib can be easily used by other CMake projects)
129
+ # # [see http://www.cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file]
130
+ #
131
+ # # Add all targets to the build-tree export set
132
+ # export(TARGETS cppnetlib-client-connections cppnetlib-server-parsers cppnetlib-uri
133
+ # FILE "${PROJECT_BINARY_DIR}/cppnetlibTargets.cmake")
134
+ # # Export the package for use from the build-tree
135
+ # # (this registers the build-tree with a global CMake-registry)
136
+ # export(PACKAGE cppnetlib)
137
+ # # Create the cppnetlibConfig.cmake and cppnetlibConfigVersion files
138
+ # file(RELATIVE_PATH REL_INCLUDE_DIR "${INSTALL_CMAKE_DIR}"
139
+ # "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
140
+ # # ... for the build tree
141
+ # set(CONF_INCLUDE_DIRS "${PROJECT_SOURCE_DIR}" ${Boost_INCLUDE_DIRS})
142
+ # configure_file(cppnetlibConfig.cmake.in
143
+ # "${PROJECT_BINARY_DIR}/cppnetlibConfig.cmake" @ONLY)
144
+ # # ... for the install tree
145
+ # set(CONF_INCLUDE_DIRS "\${CPPNETLIB_CMAKE_DIR}/${REL_INCLUDE_DIR}")
146
+ # set(CONF_INCLUDE_DIRS ${CONF_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})
147
+ # configure_file(cppnetlibConfig.cmake.in
148
+ # "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/cppnetlibConfig.cmake" @ONLY)
149
+ # # ... for both
150
+ # configure_file(cppnetlibConfigVersion.cmake.in
151
+ # "${PROJECT_BINARY_DIR}/cppnetlibConfigVersion.cmake" @ONLY)
152
+ # # Install the cppnetlibConfig.cmake and cppnetlibConfigVersion.cmake
153
+ # install(FILES
154
+ # "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/cppnetlibConfig.cmake"
155
+ # "${PROJECT_BINARY_DIR}/cppnetlibConfigVersion.cmake"
156
+ # DESTINATION "${INSTALL_CMAKE_DIR}"
157
+ # COMPONENT dev)
158
+ # # Install the export set for use with the install-tree
159
+ # install(EXPORT cppnetlibTargets
160
+ # DESTINATION "${INSTALL_CMAKE_DIR}"
161
+ # COMPONENT dev)
0 commit comments