2019-04-29 23:48:43 +00:00
|
|
|
add_library(${ABYSS_LIB} "${CMAKE_CURRENT_SOURCE_DIR}/src/md5.cpp"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/src/http.cpp"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/src/client.cpp"
|
|
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/src/server.cpp")
|
2018-10-16 17:22:52 +00:00
|
|
|
|
2019-04-29 23:48:43 +00:00
|
|
|
target_include_directories(${ABYSS_LIB} PUBLIC include)
|
2019-10-06 23:23:30 +00:00
|
|
|
target_link_libraries(${ABYSS_LIB} PUBLIC ${PLATFORM_LIB})
|
2019-10-05 15:03:25 +00:00
|
|
|
|
|
|
|
# for freebsd
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
target_link_directories(${ABYSS_EXE} PRIVATE /usr/local/lib)
|
|
|
|
target_include_directories(${ABYSS_LIB} SYSTEM PUBLIC /usr/local/include)
|
|
|
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
|
|
|
|
add_log_tag(${ABYSS_LIB})
|