compile with cmake and cef

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

compile with cmake and cef

Postby sabroo74 » Thu Jul 24, 2014 9:32 am

Hello,

I have a project that use CEF. i'm trying to use cmake to create shared library. all the cef headers files are inside include/cef3 directory
here my CMAKElist.txt
Code: Select all
cmake_minimum_required(VERSION 2.6)
INCLUDE(CMakeForceCompiler)
CMAKE_FORCE_C_COMPILER(gcc GNU)
CMAKE_FORCE_CXX_COMPILER(g++ GNU)

set(PROJECT_NAME "SFWebView")

project(${PROJECT_NAME})

set(CMAKE_BUILD_TYPE Release)


set(HDRS
   Command.h
   ListenerPattern.h
   Property.h
   SFApp.h
   SynchronizedProperties.h
   Utils.h
   V8Handler.h
   Webview.h
)
 
set(SRCS
   ListenerPattern.cpp
   Property.cpp
   SFApp.cpp
   SynchronizedProperties.cpp
   Utils.cpp
   V8Handler.cpp
   Webview.cpp
)


# add include directories
INCLUDE_DIRECTORIES(./ ./include)

add_library(${PROJECT_NAME} ${HDRS} ${SRCS})


when i try to compile i get an error : ListenerPattern.h:5:29: fatal error: include/cef_app.h: No such file or directory compilation terminated.

any help !!!
sabroo74
Newbie
 
Posts: 3
Joined: Thu Jul 24, 2014 9:26 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 40 guests