CMakeList

cmake_minimum_required(VERSION 3.12)
project(test)

set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wsign-compare -Wunused-variable -Wliteral-suffix -Wall -g -ggdb")
set(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wsign-compare -Wunused-variable -Wliteral-suffix -Wall")

set(CMAKE_CXX_STANDARD 11)

add_subdirectory(test_lib)

include_directories(thirdparty/include)
link_directories(thirdparty/lib)


add_executable(main httpServerMain.cpp
        channel.cpp
        channel.h


        )
target_link_libraries(main  ssl crypto pthread dl )
 

你可能感兴趣的:(MakeFile,cmake)