File: CMakeLists.txt

package info (click to toggle)
portmidi 1%3A217-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, sid, stretch
  • size: 2,988 kB
  • ctags: 2,395
  • sloc: ansic: 7,371; java: 865; lisp: 363; python: 299; cpp: 63; xml: 60; makefile: 45; awk: 35; sh: 18
file content (13 lines) | stat: -rw-r--r-- 575 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
if(UNIX)
  list(APPEND LIBSRC ptlinux)
  set(PM_NEEDED_LIBS pthread asound)
  add_library(porttime SHARED ${LIBSRC})
  set_target_properties(porttime PROPERTIES VERSION "0.0.0" SOVERSION "0")
  target_link_libraries(porttime ${PM_NEEDED_LIBS})
  add_library(porttime-static ${LIBSRC})
  set_target_properties(porttime-static PROPERTIES OUTPUT_NAME "porttime")
  target_link_libraries(porttime-static ${PM_NEEDED_LIBS})
  INSTALL(TARGETS porttime porttime-static
    LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
    ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}")
endif(UNIX)