[brlcad-commits] SF.net SVN: brlcad:[51548] brlcad/trunk/misc/CMakeLists.txt
Open Source Solid Modeling CAD
Brought to you by:
brlcad
From: <sta...@us...> - 2012-07-16 22:39:24
|
Revision: 51548 http://brlcad.svn.sourceforge.net/brlcad/?rev=51548&view=rev Author: starseeker Date: 2012-07-16 22:39:17 +0000 (Mon, 16 Jul 2012) Log Message: ----------- brlcad-config is executable Modified Paths: -------------- brlcad/trunk/misc/CMakeLists.txt Modified: brlcad/trunk/misc/CMakeLists.txt =================================================================== --- brlcad/trunk/misc/CMakeLists.txt 2012-07-16 22:04:09 UTC (rev 51547) +++ brlcad/trunk/misc/CMakeLists.txt 2012-07-16 22:39:17 UTC (rev 51548) @@ -18,12 +18,22 @@ endif(NOT WIN32) if(NOT CMAKE_CONFIGURATION_TYPES) - configure_file(brlcad-config.in ${CMAKE_BINARY_DIR}/bin/brlcad-config @ONLY) + configure_file(brlcad-config.in ${CMAKE_BINARY_DIR}/misc/brlcad-config @ONLY) + file(COPY ${CMAKE_BINARY_DIR}/misc/brlcad-config + DESTINATION ${CMAKE_BINARY_DIR}/${BIN_DIR} + FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ + GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + file(REMOVE ${CMAKE_BINARY_DIR}/misc/brlcad-config) install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/brlcad-config DESTINATION ${BIN_DIR}) else(NOT CMAKE_CONFIGURATION_TYPES) foreach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES}) string(TOUPPER "${CFG_TYPE}" CFG_TYPE_UPPER) - configure_file(brlcad-config.in ${CMAKE_BINARY_DIR}/${CFG_TYPE_UPPER}/bin/brlcad-config @ONLY) + configure_file(brlcad-config.in ${CMAKE_BINARY_DIR}/${CFG_TYPE_UPPER}/misc/brlcad-config @ONLY) + file(COPY ${CMAKE_BINARY_DIR}/${CFG_TYPE_UPPER}/misc/brlcad-config + DESTINATION ${CMAKE_BINARY_DIR_${CFG_TYPE_UPPER}}/${BIN_DIR} + FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ + GROUP_EXECUTE WORLD_READ WORLD_EXECUTE) + file(REMOVE ${CMAKE_BINARY_DIR}/${CFG_TYPE_UPPER}/misc/brlcad-config) endforeach(CFG_TYPE ${CMAKE_CONFIGURATION_TYPES}) install(PROGRAMS ${CMAKE_BINARY_DIR}/\${BUILD_TYPE}/bin/brlcad-config DESTINATION ${BIN_DIR}) endif(NOT CMAKE_CONFIGURATION_TYPES) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |