CMakeLists.txt 978 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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_shapes
  34. test_shapes.c
  35. console-colors.c)
  36. target_link_libraries(test_shapes m)
  37. add_executable(
  38. test_bubbles
  39. test_bubbles.c
  40. console-colors.c)
  41. target_link_libraries(test_bubbles m)