CMakeLists.txt 411 B

123456789101112131415
  1. project(tests)
  2. file(GLOB SRCS "*.c")
  3. include_directories(${PROJECT_SOURCE_DIR}/../src)
  4. foreach(sourcefile ${SRCS})
  5. string(REPLACE ".c" "" appname ${sourcefile})
  6. string(REPLACE "${PROJECT_SOURCE_DIR}/" "" appname ${appname})
  7. add_executable(${appname} ${sourcefile})
  8. target_link_libraries(${appname} peer pthread)
  9. endforeach(sourcefile ${TEST_SRCS})
  10. target_link_libraries(test_peer_connection cjson)