-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25134cf
commit 5572da9
Showing
10 changed files
with
1,534 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.swp | ||
*~ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
cmake_minimum_required (VERSION 2.8) | ||
|
||
project (cefosr) | ||
|
||
include(CheckCXXCompilerFlag) | ||
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) | ||
|
||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") | ||
|
||
find_package(OGRE REQUIRED) | ||
find_package(Cef3 REQUIRED) | ||
|
||
set (INCLUDES ${INCLUDES} ${OGRE_INCLUDE_DIRS} ${CEF3_INCLUDE_DIRS} ) | ||
set (LIBS ${LIBS} ${OGRE_LIBRARIES} ${CEF3_LIBRARIES} ) | ||
|
||
include_directories(${INCLUDES}) | ||
add_executable(osr osr.cpp) | ||
target_link_libraries(osr ${LIBS}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# - Try to find cef3 | ||
# Set CEF3_ROOT for search-hint | ||
# Set CEF3_NO_DEBUG for only optimized cef library | ||
# | ||
# Once done, this will define | ||
# | ||
# CEF3_FOUND | ||
# CEF3_INCLUDE_DIRS | ||
# CEF3_LIBRARIES - link these to use cef3 | ||
# CEF3_LIBRARY_DEBUG - link these to use cef3 debug | ||
# CEF3_LIBRARY_RELEASE - link these to use cef3 release | ||
# CEF3_LIBRARY_WRAPPER_RELEASE - link these to use cef3-wrapper release | ||
# CEF3_LIBRARY_WRAPPER_DEBUG - link these to use cef3-wrapper debug | ||
|
||
# TODO markus: script out dated - cef3 seems to change build system to cmake! | ||
|
||
|
||
IF(NOT EXISTS ${CEF3_ROOT}) | ||
message(WARNING "Could not find cef3 root: ${CEF3_ROOT}") | ||
endif () | ||
|
||
find_path(CEF3_INCLUDE_DIRS NAMES include/cef_version.h PATHS ${CEF3_ROOT} DOC "include path of cef3") | ||
|
||
set (CEF3_INCLUDE_DIRS ${CEF3_INCLUDE_DIRS} ${CEF3_INCLUDE_DIRS}/include ) | ||
|
||
find_library(CEF3_LIBRARY_RELEASE NAMES cef PATHS ${CEF3_ROOT} PATH_SUFFIXES out/Release DOC "libcef release path") | ||
find_library(CEF3_LIBRARY_DEBUG NAMES cef PATHS ${CEF3_ROOT} PATH_SUFFIXES out/Debug DOC "libcef debug path") | ||
set(CEF3_LIBRARY | ||
optimized ${CEF3_LIBRARY_RELEASE} | ||
debug ${CEF3_LIBRARY_DEBUG} | ||
) | ||
find_library(CEF3_LIBRARY_WRAPPER_RELEASE NAMES cef_dll_wrapper PATHS ${CEF3_ROOT} PATH_SUFFIXES out/Release/obj.target DOC "libcef-wrapper release path") | ||
find_library(CEF3_LIBRARY_WRAPPER_DEBUG NAMES cef_dll_wrapper PATHS ${CEF3_ROOT} PATH_SUFFIXES out/Debug/obj.target DOC "libcef-wrapper debug path") | ||
set(CEF3_LIBRARY_WRAPPER | ||
optimized ${CEF3_LIBRARY_WRAPPER_RELEASE} | ||
debug ${CEF3_LIBRARY_WRAPPER_DEBUG} | ||
) | ||
|
||
# find_package(ATK REQUIRED) # already in gtk included | ||
# find_package(Cairo REQUIRED) # already in gtk included | ||
# find_package(GLIB REQUIRED) # already in gtk included | ||
find_package(GTK2 REQUIRED gtk) | ||
# find_package(UDev REQUIRED) | ||
set (CEF3_INCLUDE_DIRS | ||
${CEF3_INCLUDE_DIRS} | ||
# ${CAIRO_INCLUDE_DIRS} | ||
# ${ATK_INCLUDE_DIRS} | ||
# ${GLIB_INCLUDE_DIRS} | ||
${GTK2_INCLUDE_DIRS} | ||
) | ||
set (CEF3_LIBRARIES | ||
${CEF3_LIBRARY} | ||
${CEF3_LIBRARY_WRAPPER} | ||
# ${UDEV_LIBRARIES} | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS( | ||
CEF3 | ||
REQUIRED_VARS CEF3_LIBRARY CEF3_LIBRARY_WRAPPER CEF3_INCLUDE_DIRS | ||
) |
Oops, something went wrong.