更新CMakeLists.txt文件,使项目能在clion编译通过

pull/1654/head
yanghuiwen 5 years ago
parent 737e4bc32d
commit 2911c814c4

@ -1,15 +1,17 @@
cmake_minimum_required(VERSION 2.6.4)
project(srs CXX)
INCLUDE_DIRECTORIES(../../objs
../../objs/st ../../objs/hp ../../objs/openssl/include
../../src/core ../../src/kernel ../../src/protocol ../../src/app)
INCLUDE_DIRECTORIES(../../objs
../../objs/st ../../objs/hp ../../objs/openssl/include
../../src/core ../../src/kernel ../../src/protocol ../../src/app
../../src/service)
set(SOURCE_FILES ../../src/main/srs_main_server.cpp)
AUX_SOURCE_DIRECTORY(../../src/core SOURCE_FILES)
AUX_SOURCE_DIRECTORY(../../src/kernel SOURCE_FILES)
AUX_SOURCE_DIRECTORY(../../src/protocol SOURCE_FILES)
AUX_SOURCE_DIRECTORY(../../src/app SOURCE_FILES)
AUX_SOURCE_DIRECTORY(../../src/service SOURCE_FILES)
ADD_DEFINITIONS("-g -O0")
@ -18,7 +20,6 @@ TARGET_LINK_LIBRARIES(srs dl)
TARGET_LINK_LIBRARIES(srs ${PROJECT_SOURCE_DIR}/../../objs/st/libst.a)
TARGET_LINK_LIBRARIES(srs ${PROJECT_SOURCE_DIR}/../../objs/openssl/lib/libssl.a)
TARGET_LINK_LIBRARIES(srs ${PROJECT_SOURCE_DIR}/../../objs/openssl/lib/libcrypto.a)
TARGET_LINK_LIBRARIES(srs ${PROJECT_SOURCE_DIR}/../../objs/hp/libhttp_parser.a)
TARGET_LINK_LIBRARIES(srs -ldl)
IF(NOT EXISTS ${PROJECT_SOURCE_DIR}/../../objs/st/libst.a)

Loading…
Cancel
Save