[racket] copy-shared-files and different platforms

From: Niitsuma Hirotaka (hirotaka.niitsuma at gmail.com)
Date: Mon Aug 25 06:10:50 EDT 2014

cmake can detect platform dependant lib path.
For example cmake can find libpoppler as the following

mkdir -p cmake/Modules
wget https://raw.githubusercontent.com/Eyescale/CMake/master/FindPoppler.cmake
mv FindPoppler.cmake  cmake/Modules/
cat CMakeLists.txt
---------
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/
Modules/")
find_package(Poppler REQUIRED)
message("Libs of poppler: " ${POPPLER_LIBRARIES} )
file(WRITE poppler.txt ${POPPLER_LIBRARIES} )
---------
cmake .


then poppler.txt contain libpoppler path



platform dependant install dest also can be  auto custimzed by cmake.

install(TARGETS yourtargetname DESTINATION lib )



2014-08-24 1:21 GMT+09:00 Jens Axel Søgaard <jensaxel at soegaard.net>:
> Hi All,
>
> How exactly are copy-shared-files to be used?
>
> I have a set of shared libraries for different platforms in:
>
>   racket-poppler/poppler-libs/poppler-i386-macosx
>   racket-poppler/poppler-libs/poppler-win32-i386
>   etc.
>
> My info file is here:
>
> https://github.com/soegaard/racket-poppler/blob/master/info.rkt
>
> I tried listing the folder poppler-libs, but it seems not to work.
>
> /Jens Axel
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users


Posted on the users mailing list.