Hello,
Take FindWt.cmake and add it to your source code, for instance in a
directory called 'cmake':
myproject/
CMakeLists.txt
src/
source1.h
source1.cpp
blah.h
blah.cpp
cmake/
FindWt.cmake
Then add this line at the beginning of your CMakeLists.txt, right
after project(myproject) and cmake_minimum_required(version 2.4):
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${myproject_SOURCE_DIR}/cmake )
PS: I'm back and I'm trying to catch with all the backlog, if anyone
was expecting an answer from me, you should receive it in a couple of
days
On Tue, Jul 20, 2010 at 8:56 PM, Diego <[email protected]> wrote:
> Hello,
>
> I am trying to compile my app in ubuntu linux and this is my
> CMakeLists.txt file:
>
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
> PROJECT(APPLICATION)
>
> #Find Wt
> #-----------------------------------------------------------------------------------
>
> FIND_PACKAGE(Wt REQUIRED)
>
> INCLUDE_DIRECTORIES(${Wt_INCLUDE_DIR})
>
> #Find Boost
> #-----------------------------------------------------------------------------------
>
> IF(NOT DEFINED Boost_ADDITIONAL_VERSIONS)
> SET(Boost_ADDITIONAL_VERSIONS
> "1.35" "1.36" "1.37" "1.38" "1.39"
> "1.40" "1.41" "1.42" "1.43" "1.44" "1.45" "1.46" "1.47" "1.48" "1.49")
> ENDIF(NOT DEFINED Boost_ADDITIONAL_VERSIONS)
>
> SET(Boost_USE_MULTITHREADED ON)
>
> FIND_PACKAGE(Boost 1.35
> COMPONENTS
> date_time
> regex
> program_options
> signals
> system
> filesystem
> thread
> REQUIRED)
>
> IF(Boost_FOUND)
> INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
> LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
> ENDIF(Boost_FOUND)
>
>
> ADD_SUBDIRECTORY(src)
>
>
> 1. Do I need all of that? or only by including FIND_PACKAGE(Wt
> REQUIRED) and INCLUDE_DIRECTORIES(${Wt_INCLUDE_DIR}) would it be enough?
>
> 2. When I run 'ccmake .", it keeps asking me about the location of
> WT_DIR to be able to find FindWt.cmake. I point to the FindWt.cmake file
> that it is included in the source /wt-3.1.3/cmake but it is not working.
> My assumption is that I should make WT_DIR pointing to the Wt
> installation directory (the one it is created when you run make install) ?
>
> 3. Shouldn't FindWt.cmake be in /usr/share/cmake-2.8/Modules after
> installing wt? I didn't find it there..... Maybe that is the cause of (2) ?
>
> Thanks,
>
> Diego
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest