浏览代码

added .cmake export file for (sub)library generation (usefull for external NICE usage via cmake

Johannes Ruehle 11 年之前
父节点
当前提交
5b498872cc
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      cmake/NiceModules.cmake

+ 2 - 1
cmake/NiceModules.cmake

@@ -125,7 +125,8 @@ macro(nice_build_library)
   TARGET_LINK_LIBRARIES("nice_${the_library}" ${nice_${the_library}_LINKING_DEPENDENCIES})
   #TARGET_LINK_LIBRARIES("nice_${the_library}" ${nice_${the_library}_LINKING_DEPENDENCIES} ${Boost_LIBRARIES} ${OPENGL_LIBRARY} ${GLUT_LIBRARY} ${QT_LIBRARIES})
   SET_PROPERTY(TARGET "nice_${the_library}" PROPERTY FOLDER "library")
-  INSTALL(TARGETS "nice_${the_library}" DESTINATION lib)
+  INSTALL(TARGETS "nice_${the_library}" DESTINATION lib EXPORT "nice_${the_library}-exports")
+  INSTALL(EXPORT "nice_${the_library}-exports" DESTINATION lib/exports)
 
   configure_file( ../cmake/niceConfig.cmake.in "${PROJECT_BINARY_DIR}/lib/nice_${the_library}Config.cmake" )
 endmacro()