You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be useful for Crow to be able to be compiled as a library (static or shared). This would reduce build times for clients and allow the Crow distribution to be updated separately (in the case of a shared library)
Note that in this case it is still possible to compile everything into crow_all.h
The text was updated successfully, but these errors were encountered:
Crow can already be used as an INTERFACE library in CMake projects.
Here's an example of how I do it, using CPM:
SET(CROW_BUILD_FUZZER OFFCACHEBOOL"Build the fuzzer for Crow")
SET(CROW_ENABLE_SSL ONCACHEBOOL"Enable Crow's SSL feature for supporting https")
SET(CROW_ENABLE_COMPRESSION ONCACHEBOOL"Enable Crow's Compression feature for supporting compressed http content")
set(CROW_BUILD_EXAMPLES OFFCACHEBOOL"Build the examples in the project")
set(CROW_BUILD_TESTS OFFCACHEBOOL"Build the tests in the project")
# some magic here which fetches the info
CPMAddPackage(
NAME${PACKAGE_NAME}
GIT_REPOSITORY ${PACKAGE_REPO}
GIT_TAG ${PACKAGE_TAG}
)
list(APPEND${PROJECT_NAME}_CPM_TARGETS ${PACKAGE_NAME})
# ...target_link_libraries(${PROJECT_NAME}
${${PROJECT_NAME}_CPM_TARGETS}
)
I think it would be useful for Crow to be able to be compiled as a library (static or shared). This would reduce build times for clients and allow the Crow distribution to be updated separately (in the case of a shared library)
Note that in this case it is still possible to compile everything into
crow_all.h
The text was updated successfully, but these errors were encountered: