You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
581 B

12 years ago
12 years ago
12 years ago
  1. cmake_minimum_required(VERSION 2.0)
  2. PROJECT(jm2cv)
  3. INCLUDE( ${CMAKE_ROOT}/Modules/FindPkgConfig.cmake )
  4. INCLUDE( ${CMAKE_ROOT}/Modules/CheckIncludeFile.cmake )
  5. pkg_check_modules(JACK jack>=0.118)
  6. SET(SOURCES
  7. client.cpp
  8. client.h
  9. cvbase.cpp
  10. cvbase.h
  11. cvin.cpp
  12. cvin.h
  13. cvout.cpp
  14. cvout.h
  15. jm2cv.cpp
  16. )
  17. LINK_DIRECTORIES(
  18. ${JACK_LIBRARY_DIRS}
  19. )
  20. INCLUDE_DIRECTORIES(
  21. ${JACK_INCLUDE_DIRS}
  22. )
  23. ADD_DEFINITIONS(-Wall -Wextra -pedantic -D_GNU_SOURCE)
  24. ADD_EXECUTABLE(jm2cv ${SOURCES})
  25. TARGET_LINK_LIBRARIES(jm2cv
  26. -lm
  27. ${JACK_LIBRARIES}
  28. )
  29. INSTALL(PROGRAMS jm2cv DESTINATION bin)