update screenshots for build instruction
This commit is contained in:
+14
-5
@@ -1,3 +1,5 @@
|
||||
# webcc
|
||||
|
||||
# Don't use any deprecated definitions (e.g., io_service).
|
||||
add_definitions(-DASIO_NO_DEPRECATED)
|
||||
|
||||
@@ -13,21 +15,28 @@ configure_file(
|
||||
# Adhere to GNU filesystem layout conventions.
|
||||
include(GNUInstallDirs)
|
||||
|
||||
file(GLOB SRCS
|
||||
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cc
|
||||
file(GLOB SOURCES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.cc)
|
||||
|
||||
file(GLOB HEADERS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/*.h)
|
||||
|
||||
if(NOT WEBCC_ENABLE_GZIP)
|
||||
list(REMOVE_ITEM SRCS "gzip.h" "gzip.cc")
|
||||
list(REMOVE_ITEM SOURCES "gzip.cc")
|
||||
list(REMOVE_ITEM HEADERS "gzip.h")
|
||||
endif()
|
||||
|
||||
set(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "Add a postfix to the debug library")
|
||||
mark_as_advanced(CMAKE_DEBUG_POSTFIX)
|
||||
|
||||
set(TARGET webcc)
|
||||
|
||||
add_library(${TARGET} STATIC ${SRCS})
|
||||
add_library(${TARGET} STATIC ${SOURCES} ${HEADERS})
|
||||
|
||||
# Install lib and header files.
|
||||
# On Linux, if CMAKE_INSTALL_PREFIX is ~, the lib (libwebcc.a) will be installed
|
||||
# to ~/lib and header files will be installed to ~/include.
|
||||
install(TARGETS ${TARGET} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
||||
install(FILES ${HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/webcc)
|
||||
install(FILES ${PROJECT_BINARY_DIR}/webcc/config.h
|
||||
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/webcc)
|
||||
|
||||
+1
-1
@@ -11,7 +11,7 @@
|
||||
#if WEBCC_ENABLE_LOG
|
||||
// 0:VERB, 1:INFO, 2:USER, 3:WARN or 4:ERRO
|
||||
#define WEBCC_LOG_LEVEL @WEBCC_LOG_LEVEL@
|
||||
#endif
|
||||
#endif // WEBCC_ENABLE_LOG
|
||||
|
||||
// Set 1/0 to enable/disable SSL/HTTPS.
|
||||
#define WEBCC_ENABLE_SSL @WEBCC_ENABLE_SSL@
|
||||
|
||||
Reference in New Issue
Block a user