Fedora Linux Support Community & Resources Center
  #1  
Old 25th March 2012, 05:34 PM
manojg Offline
Registered User
 
Join Date: May 2006
Posts: 184
linuxfirefox
find path in cmake

Hello,

I have created a library (libTest.so) by cmake. I want to use that library to make executable, so first I have to find libTest.so and link it to the main programe. In am using cmake here also. Because I am new to cmake. I still learning to write "Find module".

However, In the mean time if I can find the path of that library (which is inside the directory Test), I can easily find the libTest.so and I do not have to write "Find module". It could be something like this:
Code:
find_path(Test "Test")    # find the path of the directory "Test" and linked to a variable "Test"
lib_path(${Test})         # that will be the library path
I tried to use "FIND_PATH" but it does not work.

How can I do this? How do I locate directory in cmake?

Thanks.

Last edited by manojg; 25th March 2012 at 05:43 PM.
Reply With Quote
Reply

Tags
cmake, path

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Find the path to the Master Boot Record of hard drive on Fedora 15 lafluer13 Using Fedora 5 6th December 2011 08:27 PM
Trying to install Kile from source: CMake cannot find Phonon SpectrumDT Using Fedora 4 24th January 2010 04:03 PM
How do I find the file path to a mounted shared folder? RightNow Servers & Networking 1 17th October 2006 05:12 PM
Can't find kernel Path?? dickinsd Using Fedora 3 27th November 2004 03:12 AM
after su to root: can't find common libs, path is messed up, etc. OoerictoO Using Fedora 6 5th October 2004 05:59 PM


Current GMT-time: 01:40 (Wednesday, 23-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat