diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-03-10 11:41:50 +0100 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2017-03-10 11:41:50 +0100 |
commit | 72e083a18934b2a3c838208b00ab4c3a94c8642d (patch) | |
tree | 4d1ee86f069f03d84c2c499974bfe428dc1b0bbb /deps/oclfft | |
parent | 53118b8e5633233a0720aae4ef10d275bb45f260 (diff) | |
download | ufo-filters-72e083a18934b2a3c838208b00ab4c3a94c8642d.tar.gz ufo-filters-72e083a18934b2a3c838208b00ab4c3a94c8642d.tar.bz2 ufo-filters-72e083a18934b2a3c838208b00ab4c3a94c8642d.tar.xz ufo-filters-72e083a18934b2a3c838208b00ab4c3a94c8642d.zip |
Allow third parties to find oclfft
Diffstat (limited to 'deps/oclfft')
-rw-r--r-- | deps/oclfft/CMakeLists.txt | 11 | ||||
-rw-r--r-- | deps/oclfft/oclfft.pc.in | 10 |
2 files changed, 21 insertions, 0 deletions
diff --git a/deps/oclfft/CMakeLists.txt b/deps/oclfft/CMakeLists.txt index e523672..b68e4ee 100644 --- a/deps/oclfft/CMakeLists.txt +++ b/deps/oclfft/CMakeLists.txt @@ -1,5 +1,7 @@ project(oclfft CXX) +include(GNUInstallDirs) + include_directories(${OpenCL_INCLUDE_DIRS} ${UFO_INCLUDE_DIRS}) @@ -10,5 +12,14 @@ add_library(oclfft SHARED target_link_libraries(oclfft ${UFO_LIBRARIES} ${OpenCL_LIBRARIES}) +configure_file("${CMAKE_CURRENT_SOURCE_DIR}/oclfft.pc.in" + "${CMAKE_CURRENT_BINARY_DIR}/oclfft.pc" @ONLY IMMEDIATE) + install(TARGETS oclfft LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/oclFFT.h + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) + +install(FILES ${CMAKE_CURRENT_BINARY_DIR}/oclfft.pc + DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") diff --git a/deps/oclfft/oclfft.pc.in b/deps/oclfft/oclfft.pc.in new file mode 100644 index 0000000..ce2e16e --- /dev/null +++ b/deps/oclfft/oclfft.pc.in @@ -0,0 +1,10 @@ +prefix=@CMAKE_INSTALL_PREFIX@ +exec_prefix=@CMAKE_INSTALL_PREFIX@ +libdir=${exec_prefix}/@CMAKE_INSTALL_LIBDIR@ +includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@ + +Name: oclfft +Description: Apple OpenCL FFT +Version: 1.0 +Libs: -L${libdir} -loclfft +Cflags: -I${includedir} |