mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-09-19 18:20:40 +03:00
16 lines
432 B
CMake
16 lines
432 B
CMake
|
file(GLOB SOURCES_CEDAR "*.c")
|
||
|
file(GLOB HEADERS_CEDAR "*.h")
|
||
|
|
||
|
add_library(cedar STATIC ${SOURCES_CEDAR} ${HEADERS_CEDAR})
|
||
|
|
||
|
set_target_properties(cedar
|
||
|
PROPERTIES
|
||
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
|
||
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
|
||
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/tmp/Cedar"
|
||
|
)
|
||
|
|
||
|
if(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
|
||
|
target_link_libraries(cedar pcap)
|
||
|
endif()
|