Open GoogleCodeExporter opened 9 years ago
Add this fragment to the top CMakeLists.txt to get pkg-config support.
The fragment generates an amop.pc into the CMAKE_BINARY_DIR and installs it
when you
run the "make install".
With this fragment you can ignore the amop.pc I've sent above.
# support for pkg-config
FILE(WRITE ${CMAKE_BINARY_DIR}/amop.pc "prefix=${CMAKE_INSTALL_PREFIX}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
includedir=\${prefix}/include
Name: AMOP
Description: A mock library.
Version: 0.31
URL: http://code.google.com/p/amop/
Libs: -L\${libdir} -lAmop
Cflags: -I\${includedir}
")
INSTALL(FILES ${CMAKE_BINARY_DIR}/amop.pc DESTINATION lib/pkgconfig)
Original comment by ibo...@gmail.com
on 24 Nov 2008 at 3:09
Original issue reported on code.google.com by
ibo...@gmail.com
on 21 Nov 2008 at 8:35Attachments: