Skip to content

Commit ad2fef3

Browse files
committed
Update CMakeLists.txt
bugfix: fixed build failure and add the install command
1 parent ad8d5fd commit ad2fef3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PROJECT(${MODULE_NAME})
55

66
INCLUDE_DIRECTORIES(
77
${CMAKE_SOURCE_DIR}
8-
/usr/local/include/scws
8+
/usr/local/include
99
)
1010
SET(SRC_LIST
1111
httpscws.cpp)
@@ -14,7 +14,8 @@ LINK_DIRECTORIES(/usr/lib)
1414
LINK_DIRECTORIES(/usr/local/lib)
1515
ADD_DEFINITIONS(-DDEBUG)
1616
LINK_LIBRARIES(m)
17-
LINK_LIBRARIES(pthread)
17+
LINK_LIBRARIES(event)
1818
LINK_LIBRARIES(scws)
1919

2020
ADD_EXECUTABLE(${MODULE_NAME} ${SRC_LIST})
21+
INSTALL(TARGETS ${MODULE_NAME} RUNTIME DESTINATION bin)

0 commit comments

Comments
 (0)