<div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)"><div class="gmail_default" style="color:rgb(0,0,0)">Hi Everyone, <br></div><div class="gmail_default" style="color:rgb(0,0,0)">Myself Aishwarya .I wanted to make use of Cmake , but I'm really new to this and doesn't have a clear idea about it.<br><br></div><div class="gmail_default" style="color:rgb(0,0,0)">1) <b>My Goal :</b><br></div><div class="gmail_default" style="color:rgb(0,0,0)">I'm
 using Praat a speech Processing Software to create plug - in for my 
Algorithm on Pitch and Time scaling .(I have the .cpp file)<br></div><div class="gmail_default" style="color:rgb(0,0,0)">In order to do that I need to use the binary file obtained by compiling .cpp file <b><br clear="all"></b></div><div style="color:rgb(0,0,0)" class="gmail_default">​in my Praat Script .<br></div><div style="color:rgb(0,0,0)" class="gmail_default">I
 intent to share this plug - in with others ,Hence I want it to be 
machine independent .The binary file I obtained is using gcc in Linux 
(16.0.2), which clearly wont work in Mac or Windows or even in lower 
Linux Version.<br></div><div style="color:rgb(0,0,0)" class="gmail_default">To solve this Problem I understand that I need to make use of Cmake files .<br><br></div><div style="color:rgb(0,0,0)" class="gmail_default">2) My .cpp file called TSM_CODE_V3.cpp is compiled as<br></div><div style="color:rgb(0,0,0)" class="gmail_default">g++ TSM_CODE_V3.cpp -larmadillo -lsndfile -o TSM <br><br></div><div style="color:rgb(0,0,0)" class="gmail_default">where armadillo and sndfile are two depended libraries. <br></div><div style="color:rgb(0,0,0)" class="gmail_default"><br></div><div style="color:rgb(0,0,0)" class="gmail_default">3)<b> What I have done :</b><br></div><div style="color:rgb(0,0,0)" class="gmail_default">​I have gone through a loot of tutorials for cmake .I have wage idea , but I'm not able to solve my problem mentioned above .<br></div><div style="color:rgb(0,0,0)" class="gmail_default">​My folder TSM consists of <br>build - the folder which consists the final executable binary file and the related cmake files required to create binary file <br></div><div style="color:rgb(0,0,0)" class="gmail_default">src - consists of my TSM_CODE_V3.cpp code <br></div><div style="color:rgb(0,0,0)" class="gmail_default">CMakeLists.txt - The top level Cmake file :<br><br>         cmake_minimum_required(VERSION 2.8.9)<br>         project(directory_TSM)<br>         include_directories(include)<br>         file(GLOB SOURCES "src/*.cpp")<br>         add_executable(tsm ${SOURCES})<br><br><br></div><div style="color:rgb(0,0,0)" class="gmail_default">I need to include the library armadillo and lidsndfile .<br></div><div style="color:rgb(0,0,0)" class="gmail_default">I dont know how to include it into my cmakefile .<br></div><div style="color:rgb(0,0,0)" class="gmail_default">I have come across find_package ,find_library  but I am sure about it .<br></div><div style="color:rgb(0,0,0)" class="gmail_default"> To
 create my Praat Plug - in I need to compile the source code no matter 
in which system it is ,which may or may not have these two libraries 
already installed.<br></div><div style="color:rgb(0,0,0)" class="gmail_default">So how how do I add libraries using cmake ?<br></div><div style="color:rgb(0,0,0)" class="gmail_default">I hope you got my point .<br></div><div style="color:rgb(0,0,0)" class="gmail_default">Could help me ?<br><br><br></div>Hoping for your reply .</div><br>-- <br><div class="gmail_signature"><div dir="ltr">Regards,<br>Aishwarya Selvaraj</div></div>
</div>