[CMake] Vary SUFFIX by build for SHARED MODULE?

2014-07-11 Thread Tessier, Philip A (TASC)
All, greetings and thank you!

I have a requirement to produce (on Windows, using Visual Studio) a plugin 
(DLL) whose suffix varies by build. For example, foo.plugin (for Release) and 
foo.pluginD (for Debug). I expect to use:

add_library(foo MODULE ${Sources})

and am hoping for a SUFFIX_DEBUG, SUFFIX_RELEASE-type variable to specify, like:

set(SUFFIX .plugin)
set(SUFFIX_DEBUG .pluginD)

Any help will be appreciated!
Thanks,

Phil


Philip A. Tessier
[cid:image001.jpg@01CF9CFA.188BB5C0]

Tri-Service Research Laboratory (TSRL)
4141 Petroleum Road, Ste 2115E
JBSA Fort Sam Houston TX 78234-2644
210-867-6775 mobile
210-539-8273 office
philip.tess...@tasc.commailto:philip.tess...@tasc.com
philip.a.tessier@mail.milmailto:philip.a.tessier@mail.mil


CONFIDENTIALITY NOTICE: This message and any attachments or files transmitted 
with it (collectively, the Message) are intended only for the addressee and 
may contain information that is privileged, proprietary and/or prohibited from 
disclosure by law or contract. If you are not the intended recipient: (a) 
please do not read, copy or retransmit the Message; (b) permanently delete 
and/or destroy all electronic and hard copies of the Message; (c) notify us by 
return email; and (d) you are hereby notified that any dissemination, 
distribution or copying of the Message is strictly prohibited.
-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] Vary SUFFIX by build for SHARED MODULE?

2014-07-11 Thread Michael Jackson

#-- Set the Debug and Release names for the libraries
SET_TARGET_PROPERTIES( ${targetName}
PROPERTIES
DEBUG_POSTFIX ${DEBUG_EXTENSION} )

Mike Jackson

On Jul 11, 2014, at 12:20 PM, Tessier, Philip A (TASC) 
philip.tess...@tasc.com wrote:

 All, greetings and thank you!
  
 I have a requirement to produce (on Windows, using Visual Studio) a “plugin” 
 (DLL) whose suffix varies by build. For example, foo.plugin (for Release) and 
 foo.pluginD (for Debug). I expect to use:
  
 add_library(foo MODULE ${Sources})
  
 and am hoping for a SUFFIX_DEBUG, SUFFIX_RELEASE-type variable to specify, 
 like:
  
 set(SUFFIX “.plugin”)
 set(SUFFIX_DEBUG “.pluginD”)
  
 Any help will be appreciated!
 Thanks,
  
 Phil
  
  
 Philip A. Tessier
 image001.jpg
  
 Tri-Service Research Laboratory (TSRL)
 4141 Petroleum Road, Ste 2115E
 JBSA Fort Sam Houston TX 78234-2644
 210-867-6775 mobile
 210-539-8273 office
 philip.tess...@tasc.com
 philip.a.tessier@mail.mil
  
 CONFIDENTIALITY NOTICE: This message and any attachments or files transmitted 
 with it (collectively, the Message) are intended only for the addressee and 
 may contain information that is privileged, proprietary and/or prohibited 
 from disclosure by law or contract. If you are not the intended recipient: 
 (a) please do not read, copy or retransmit the Message; (b) permanently 
 delete and/or destroy all electronic and hard copies of the Message; (c) 
 notify us by return email; and (d) you are hereby notified that any 
 dissemination, distribution or copying of the Message is strictly prohibited.
 
 -- 
 
 Powered by www.kitware.com
 
 Please keep messages on-topic and check the CMake FAQ at: 
 http://www.cmake.org/Wiki/CMake_FAQ
 
 Kitware offers various services to support the CMake community. For more 
 information on each offering, please visit:
 
 CMake Support: http://cmake.org/cmake/help/support.html
 CMake Consulting: http://cmake.org/cmake/help/consulting.html
 CMake Training Courses: http://cmake.org/cmake/help/training.html
 
 Visit other Kitware open-source projects at 
 http://www.kitware.com/opensource/opensource.html
 
 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/cmake

-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake