Hi Ahmed: Thanks for your help.
I also need to copy the header files, so I added the following lines (by guessing) into the CmakeList.txt as well: #install public headers. FOREACH(file ${HEADERS}) get_filename_component(apath ${file} PATH) get_filename_component(aname ${file} NAME) file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath}) IF ( NOT aname MATCHES "^_.*" ) install(FILES ${file} DESTINATION include/${relpath} COMPONENT development) ENDIF ( NOT aname MATCHES "^_.*" ) ENDFOREACH(file) Please let me know if you feel there is anything wrong with the above. Thanks. On 24/02/12 9:39 AM, "Ahmed" <ci7nu...@gmail.com> wrote: >Hi >2 days ago i run into the same problem, if you want to install >contrib-libs add this lines to (at the end) src/contrib-lib/CmakeList.txt: > >install(TARGETS clucene-contribs-lib > DESTINATION ${LIB_DESTINATION} > COMPONENT runtime ) > >Le 23/02/2012 04:40, Vivien Meng a écrit : >> Hi Ben: >> >> Thanks for your help. >> >> As I am just at the beginning of transforming myself from a Windows >>.Net programmer to Mac programmer, not very sure how to deal with cmake >>properly yet, but I'll have a go. >> >> Truly grateful for your quick responses. >> >> -----Original Message----- >> From: Ben van Klinken [mailto:bvanklin...@gmail.com] >> Sent: Thursday, 23 February 2012 1:19 PM >> To: clucene-developers@lists.sourceforge.net >> Subject: Re: [CLucene-dev] Help on CMakeLists.txt within contribs-lib >>folder >> >> hmm, i think it's not in the install list. >> >> you can modify the src/contrib-lib/CmakeList.txt file to install the >>headers and libs. Have a look at src/core/Cmakelist.txt for wherever >> install() is called. >> >> basically you'd need to install the contents of HEADERS and the library >>itself. >> >> ben >> >> On 23 February 2012 12:02, Vivien Meng<v.m...@qsr.com.au> wrote: >>> Hi Ben: >>> >>> >>> We did not get any error, but no where we can find the installed >>>library. >>> >>> The following is the screen shot for the command: >>> >>> vivienm-mac0603:contribs-lib VMeng$ make install [ 7%] Built target >>> clucene-shared [ 74%] Built target clucene-core [100%] Built target >>> clucene-contribs-lib Install the project... >>> -- Install configuration: "RelWithDebInfo" >>> >>> >>> Thanks >>> >>> >>> On 23/02/12 12:31 PM, "Ben van Klinken"<bvanklin...@gmail.com> wrote: >>> >>>> What error are you getting? >>>> ben >>>> >>>> On 23 February 2012 11:10, Vivien Meng<v.m...@qsr.com.au> wrote: >>>>> Hi Ben: >>>>> >>>>> >>>>> Thanks so much for your help. >>>>> >>>>> Using your suggestion, I get an Xcode project for >>>>> clucene-contribes-lib, however, the project builds but fails to >>>>>install. >>>>> >>>>> So for clucene-contribues-lib, make works, but make install does not >>>>> work. >>>>> >>>>> Any further suggestions? >>>>> >>>>> Thanks again. >>>>> >>>>> >>>>> >>>>> -----Original Message----- >>>>> From: Ben van Klinken [mailto:bvanklin...@gmail.com] >>>>> Sent: Thursday, 23 February 2012 11:06 AM >>>>> To: clucene-developers@lists.sourceforge.net >>>>> Subject: Re: [CLucene-dev] Help on CMakeLists.txt within contribs-lib >>>>> folder >>>>> >>>>> Hi, >>>>> >>>>> You create the contribs lib from the root project still.: >>>>> >>>>> so in<clucene>/ you do >>>>> >>>>> cmake -DBUILD_CONTRIBS_LIB=ON . >>>>> >>>>> and then make clucene-contribs-lib >>>>> >>>>> haven't used it for a while, so let us know how you go >>>>> >>>>> cheers >>>>> ben >>>>> >>>>> On 23 February 2012 09:28, Vivien Meng<v.m...@qsr.com.au> wrote: >>>>>> To whom this may concern: >>>>>> >>>>>> >>>>>> I downloaded clucene-core-2.3.3.4.tar.gz. Unzipped all the files. >>>>>> >>>>>> I'd like to make Xcode project for snowball to build a library file, >>>>>> but when I try to use following cmake command line in the >>>>>>contribs-lib >>>>>> directory: >>>>>> cmake -G Xcode >>>>>> >>>>>> I get the following errors: >>>>>> >>>>>> include could not find load file: DefineOptions >>>>>> >>>>>> Unknown CMake command "DEFINE_OPTIONS". >>>>>> >>>>>> How do I fix this problem? >>>>>> >>>>>> >>>>>> Thanks in advance. >>>>>> >>>>>> >>>>>> Vivien >>>>>> >>>>>> >>>>>>--------------------------------------------------------------------- >>>>>>- >>>>>> -------- Virtualization& Cloud Management Using Capacity Planning >>>>>> Cloud computing makes use of virtualization - but cloud computing >>>>>>also >>>>>> focuses on allowing computing to be delivered as a service. >>>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>>> _______________________________________________ >>>>>> CLucene-developers mailing list >>>>>> CLucene-developers@lists.sourceforge.net >>>>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>>> >>>>> >>>>>---------------------------------------------------------------------- >>>>>--- >>>>> ----- >>>>> Virtualization& Cloud Management Using Capacity Planning Cloud >>>>> computing makes use of virtualization - but cloud computing also >>>>>focuses >>>>> on allowing computing to be delivered as a service. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>> _______________________________________________ >>>>> CLucene-developers mailing list >>>>> CLucene-developers@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>>> >>>>> >>>>> >>>>>---------------------------------------------------------------------- >>>>>--- >>>>> ----- >>>>> Virtualization& Cloud Management Using Capacity Planning >>>>> Cloud computing makes use of virtualization - but cloud computing >>>>> also focuses on allowing computing to be delivered as a service. >>>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>>> _______________________________________________ >>>>> CLucene-developers mailing list >>>>> CLucene-developers@lists.sourceforge.net >>>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>>> >>>>----------------------------------------------------------------------- >>>>--- >>>> ---- >>>> Virtualization& Cloud Management Using Capacity Planning >>>> Cloud computing makes use of virtualization - but cloud computing >>>> also focuses on allowing computing to be delivered as a service. >>>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>>> _______________________________________________ >>>> CLucene-developers mailing list >>>> CLucene-developers@lists.sourceforge.net >>>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >>> >>> >>>------------------------------------------------------------------------ >>>------ >>> Virtualization& Cloud Management Using Capacity Planning >>> Cloud computing makes use of virtualization - but cloud computing >>> also focuses on allowing computing to be delivered as a service. >>> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >>> _______________________________________________ >>> CLucene-developers mailing list >>> CLucene-developers@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >>------------------------------------------------------------------------- >>----- >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> CLucene-developers mailing list >> CLucene-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/clucene-developers >> >> >>------------------------------------------------------------------------- >>----- >> Virtualization& Cloud Management Using Capacity Planning >> Cloud computing makes use of virtualization - but cloud computing >> also focuses on allowing computing to be delivered as a service. >> http://www.accelacomm.com/jaw/sfnl/114/51521223/ >> _______________________________________________ >> CLucene-developers mailing list >> CLucene-developers@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/clucene-developers > > >-------------------------------------------------------------------------- >---- >Virtualization & Cloud Management Using Capacity Planning >Cloud computing makes use of virtualization - but cloud computing >also focuses on allowing computing to be delivered as a service. >http://www.accelacomm.com/jaw/sfnl/114/51521223/ >_______________________________________________ >CLucene-developers mailing list >CLucene-developers@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/clucene-developers ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ CLucene-developers mailing list CLucene-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/clucene-developers