12c593315Sopenharmony_ciif(ENABLE_EXAMPLES) 22c593315Sopenharmony_ci file(GLOB c_sources *.c) 32c593315Sopenharmony_ci set_source_files_properties(${c_sources} PROPERTIES 42c593315Sopenharmony_ci COMPILE_FLAGS "${WARNCFLAGS}") 52c593315Sopenharmony_ci file(GLOB cxx_sources *.cc) 62c593315Sopenharmony_ci set_source_files_properties(${cxx_sources} PROPERTIES 72c593315Sopenharmony_ci COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}") 82c593315Sopenharmony_ci 92c593315Sopenharmony_ci include_directories( 102c593315Sopenharmony_ci ${CMAKE_CURRENT_SOURCE_DIR} 112c593315Sopenharmony_ci "${CMAKE_CURRENT_SOURCE_DIR}/../third-party" 122c593315Sopenharmony_ci "${CMAKE_CURRENT_SOURCE_DIR}/../third-party/llhttp/include" 132c593315Sopenharmony_ci 142c593315Sopenharmony_ci ${LIBEVENT_INCLUDE_DIRS} 152c593315Sopenharmony_ci ${OPENSSL_INCLUDE_DIRS} 162c593315Sopenharmony_ci ) 172c593315Sopenharmony_ci 182c593315Sopenharmony_ci link_libraries( 192c593315Sopenharmony_ci nghttp2 202c593315Sopenharmony_ci ${LIBEVENT_OPENSSL_LIBRARIES} 212c593315Sopenharmony_ci ${OPENSSL_LIBRARIES} 222c593315Sopenharmony_ci ${APP_LIBRARIES} 232c593315Sopenharmony_ci ) 242c593315Sopenharmony_ci 252c593315Sopenharmony_ci add_executable(client client.c $<TARGET_OBJECTS:llhttp> 262c593315Sopenharmony_ci $<TARGET_OBJECTS:url-parser> 272c593315Sopenharmony_ci ) 282c593315Sopenharmony_ci add_executable(libevent-client libevent-client.c $<TARGET_OBJECTS:llhttp> 292c593315Sopenharmony_ci $<TARGET_OBJECTS:url-parser> 302c593315Sopenharmony_ci ) 312c593315Sopenharmony_ci add_executable(libevent-server libevent-server.c $<TARGET_OBJECTS:llhttp> 322c593315Sopenharmony_ci $<TARGET_OBJECTS:url-parser> 332c593315Sopenharmony_ci ) 342c593315Sopenharmony_ci add_executable(deflate deflate.c $<TARGET_OBJECTS:llhttp> 352c593315Sopenharmony_ci $<TARGET_OBJECTS:url-parser> 362c593315Sopenharmony_ci ) 372c593315Sopenharmony_ciendif() 38