Browse Source

* add f2b-source-test to build

master
Alex 'AdUser' Z 8 years ago
parent
commit
19de6bfa95
  1. 13
      src/CMakeLists.txt

13
src/CMakeLists.txt

@ -17,19 +17,24 @@ if (WITH_CLIENT)
install(TARGETS "f2bc" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(TARGETS "f2bc" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
endif () endif ()
set(SOURCES "strlcpy.c" "backend-test.c" "log.c" "config.c" "backend.c") set(SOURCES "strlcpy.c" "source-test.c" "log.c" "config.c" "source.c")
add_executable("f2b-backend-test" ${SOURCES}) add_executable("f2b-source-test" ${SOURCES})
set(SOURCES "strlcpy.c" "filter-test.c" "log.c" "config.c" "filter.c") set(SOURCES "strlcpy.c" "filter-test.c" "log.c" "config.c" "filter.c")
add_executable("f2b-filter-test" ${SOURCES}) add_executable("f2b-filter-test" ${SOURCES})
set(SOURCES "strlcpy.c" "backend-test.c" "log.c" "config.c" "backend.c")
add_executable("f2b-backend-test" ${SOURCES})
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(f2b "dl") target_link_libraries(f2b "dl")
target_link_libraries("f2b-backend-test" "dl") target_link_libraries("f2b-source-test" "dl")
target_link_libraries("f2b-filter-test" "dl") target_link_libraries("f2b-filter-test" "dl")
target_link_libraries("f2b-backend-test" "dl")
endif () endif ()
install(TARGETS "f2b-filter-test" "f2b-backend-test" RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(TARGETS "f2b-source-test" "f2b-filter-test" "f2b-backend-test"
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
add_subdirectory("backends") add_subdirectory("backends")
add_subdirectory("filters") add_subdirectory("filters")

Loading…
Cancel
Save