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

Reply via email to