CMakeLists.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_c
  34. test_c.c
  35. lz4.cpp
  36. lodepng.c
  37. sds.c
  38. whereami.c)
  39. target_link_libraries(test_c ${CURL_LIBRARIES})
  40. add_executable(
  41. test_linkage
  42. test_linkage.cpp
  43. test_linkage.c
  44. lz4.cpp
  45. lodepng.c
  46. sds.c
  47. whereami.c)
  48. target_link_libraries(test_linkage ${CURL_LIBRARIES})
  49. add_executable(
  50. test_shapes
  51. test_shapes.c
  52. console-colors.c)
  53. target_link_libraries(test_shapes m)
  54. add_executable(
  55. test_bubbles
  56. test_bubbles.c
  57. console-colors.c)
  58. target_link_libraries(test_bubbles m)
  59. add_executable(
  60. test_filecache
  61. test_filecache.c
  62. console-colors.c)
  63. add_executable(
  64. test_filecache_lz4
  65. test_filecache_lz4.c
  66. console-colors.c)
  67. add_executable(
  68. test_sprune
  69. test_sprune.c
  70. console-colors.c)