mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-15 12:13:24 +00:00
15 lines
599 B
CMake
15 lines
599 B
CMake
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")
|
|
|
|
target_include_directories(${ABYSS_LIB} PUBLIC include)
|
|
target_link_libraries(${ABYSS_LIB} PUBLIC ${PLATFORM_LIB})
|
|
|
|
# for freebsd
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
target_include_directories(${ABYSS_LIB} SYSTEM PUBLIC /usr/local/include)
|
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
|
|
add_log_tag(${ABYSS_LIB})
|