ff4ff35918
Red Bear OS is a full fork. All sources must be available from git clone with zero network access. Removed gitignore rules that excluded fetched source trees under recipes/*/source/, local/recipes/kde/*/source/, local/recipes/qt/*/source/, and vendor source trees. Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded. 127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt frameworks, mesa, wayland, DRM drivers, and every other recipe source.
38 lines
1.0 KiB
CMake
38 lines
1.0 KiB
CMake
if(ENABLE_EXAMPLES)
|
|
file(GLOB c_sources *.c)
|
|
set_source_files_properties(${c_sources} PROPERTIES
|
|
COMPILE_FLAGS "${WARNCFLAGS}")
|
|
file(GLOB cxx_sources *.cc)
|
|
set_source_files_properties(${cxx_sources} PROPERTIES
|
|
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}")
|
|
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../third-party"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/../third-party/llhttp/include"
|
|
|
|
${LIBEVENT_INCLUDE_DIRS}
|
|
${OPENSSL_INCLUDE_DIRS}
|
|
)
|
|
|
|
link_libraries(
|
|
nghttp2
|
|
${LIBEVENT_OPENSSL_LIBRARIES}
|
|
${OPENSSL_LIBRARIES}
|
|
${APP_LIBRARIES}
|
|
)
|
|
|
|
add_executable(client client.c $<TARGET_OBJECTS:llhttp>
|
|
$<TARGET_OBJECTS:url-parser>
|
|
)
|
|
add_executable(libevent-client libevent-client.c $<TARGET_OBJECTS:llhttp>
|
|
$<TARGET_OBJECTS:url-parser>
|
|
)
|
|
add_executable(libevent-server libevent-server.c $<TARGET_OBJECTS:llhttp>
|
|
$<TARGET_OBJECTS:url-parser>
|
|
)
|
|
add_executable(deflate deflate.c $<TARGET_OBJECTS:llhttp>
|
|
$<TARGET_OBJECTS:url-parser>
|
|
)
|
|
endif()
|