Ryan C. Gordon wrote:

I'm trying to add bindings for various scripting languages to my library PhysicsFS ( http://icculus.org/physfs/ ), and I'm having some trouble.

Eventually I end up with something like this abbreviated example for the Perl bindings...

    # This is the actual main library, not the binding.
    ADD_LIBRARY(physfs SHARED whatever)

    # This is the binding.
    ADD_LIBRARY(physfs-perl SHARED "physfs-perl.c")
    TARGET_LINK_LIBRARIES(physfs-perl physfs)
    SET_TARGET_PROPERTIES(physfs-perl PROPERTIES OUTPUT_NAME "physfs")
    INSTALL(TARGETS physfs-perl LIBRARY DESTINATION "${_INSTALLPATH}")


See this property:

http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LIBRARY_OUTPUT_DIRECTORY


--
Bill Hoffman
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065
bill.hoff...@kitware.com
http://www.kitware.com
518 881-4905 (Direct)
518 371-3971 x105
Fax (518) 371-4573
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to