diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 13:16:16 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2013-11-03 13:16:16 +0100 |
commit | 77b4733272c1677e774ee8bcb43b79272673bdea (patch) | |
tree | 7196fafc8c68ab8f541292f1c8f9e3dc2f2009fa | |
parent | b117a60e81c3d67880cd8b0079041c92a0818d96 (diff) | |
download | fastd-77b4733272c1677e774ee8bcb43b79272673bdea.tar fastd-77b4733272c1677e774ee8bcb43b79272673bdea.zip |
Include protocol as a static library as well
-rw-r--r-- | src/CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/protocols/CMakeLists.txt | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6c882b7..e639ceb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,12 +36,11 @@ add_executable(fastd socket.c tuntap.c ${BISON_fastd_config_parse_OUTPUTS} - ${PROTOCOL_SOURCES} ) set_property(TARGET fastd PROPERTY COMPILE_FLAGS "${FASTD_CFLAGS}") set_property(TARGET fastd PROPERTY LINK_FLAGS "-pthread ${UECC_LDFLAGS_OTHER} ${NACL_LDFLAGS_OTHER}") target_include_directories(fastd PRIVATE ${CAP_INCLUDE_DIR} ${NACL_INCLUDE_DIRS}) -target_link_libraries(fastd methods ciphers macs ${RT_LIBRARY} ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARIES}) +target_link_libraries(fastd protocols methods ciphers macs ${RT_LIBRARY} ${CAP_LIBRARY} ${UECC_LIBRARIES} ${NACL_LIBRARIES}) add_dependencies(fastd version) diff --git a/src/protocols/CMakeLists.txt b/src/protocols/CMakeLists.txt index 60bfa8e..a5be3f7 100644 --- a/src/protocols/CMakeLists.txt +++ b/src/protocols/CMakeLists.txt @@ -7,4 +7,4 @@ foreach(protocol ${PROTOCOLS}) list(APPEND PROTOCOL_SOURCES $<TARGET_OBJECTS:protocol_${protocol}>) endforeach(protocol) -set(PROTOCOL_SOURCES "${PROTOCOL_SOURCES}" PARENT_SCOPE) +add_library(protocols STATIC ${PROTOCOL_SOURCES}) |