CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. cmake_minimum_required(VERSION 2.8.7)
  2. project(par)
  3. find_package(PkgConfig REQUIRED)
  4. pkg_search_module(CURL REQUIRED libcurl)
  5. set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} "-std=c11 -Wall")
  6. set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-Wvla -Wall")
  7. include_directories(.. . ${CURL_INCLUDE_DIRS})
  8. add_executable(
  9. test_msquares
  10. test_msquares.c
  11. lz4.cpp
  12. lodepng.c
  13. sds.c
  14. whereami.c)
  15. target_link_libraries(test_msquares ${CURL_LIBRARIES})
  16. add_executable(
  17. test_bluenoise
  18. test_bluenoise.c
  19. lz4.cpp
  20. lodepng.c
  21. sds.c
  22. whereami.c)
  23. target_link_libraries(test_bluenoise ${CURL_LIBRARIES})
  24. add_executable(
  25. test_cpp
  26. test_cpp.cpp
  27. lz4.cpp
  28. lodepng.c
  29. sds.c
  30. whereami.c)
  31. target_link_libraries(test_cpp ${CURL_LIBRARIES})
  32. add_executable(
  33. test_linkage
  34. test_linkage.cpp
  35. test_linkage.c
  36. lz4.cpp
  37. lodepng.c
  38. sds.c
  39. whereami.c)
  40. target_link_libraries(test_linkage ${CURL_LIBRARIES})
  41. add_executable(
  42. test_shapes
  43. test_shapes.c
  44. console-colors.c)
  45. target_link_libraries(test_shapes m)
  46. add_executable(
  47. test_bubbles
  48. test_bubbles.c
  49. console-colors.c)
  50. target_link_libraries(test_bubbles m)
  51. add_executable(
  52. test_filecache
  53. test_filecache.c
  54. console-colors.c)
  55. target_link_libraries(test_filecache)
  56. add_executable(
  57. test_filecache_lz4
  58. test_filecache_lz4.c
  59. console-colors.c)
  60. target_link_libraries(test_filecache_lz4)