diff options
author | Brad King <brad.king@kitware.com> | 2009-08-11 13:07:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-08-11 13:07:42 (GMT) |
commit | 463b3f03bd848a345ab535d31be31d395fe66b13 (patch) | |
tree | 06594c0811edb4cdbbdc57e74acb153c1e8f818a /Source/cmTarget.h | |
parent | 0bc050677f71651ae7ef403ec063af06b6ecd751 (diff) | |
download | CMake-463b3f03bd848a345ab535d31be31d395fe66b13.zip CMake-463b3f03bd848a345ab535d31be31d395fe66b13.tar.gz CMake-463b3f03bd848a345ab535d31be31d395fe66b13.tar.bz2 |
Create cmTarget DLL query methods
We creates methods IsDLLPlatform() and HasImportLibrary(). The former
returns true on Windows. The latter returns whether the target has a
DLL import library. It is true on Windows for shared libraries and
executables with exports.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 015a3a6..e0118fc 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -413,6 +413,12 @@ public: /** Return whether this target may be used to link another target. */ bool IsLinkable(); + /** Return whether or not the target is for a DLL platform. */ + bool IsDLLPlatform() { return this->DLLPlatform; } + + /** Return whether or not the target has a DLL import library. */ + bool HasImportLibrary(); + /** Return whether this target is a shared library Framework on Apple. */ bool IsFrameworkOnApple(); |