-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathCMakeLists.txt
39 lines (29 loc) · 1.01 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Author: Steven Lamerton
# Copyright: (c) 2013 Steven Lamerton
# Licence: wxWindows licence
# Required to find the webview library
cmake_minimum_required(VERSION 2.8.8)
project(wxwebviewchromium)
# Set the module path so we can find FindCEF
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
# Find CEF
find_package(CEF)
include_directories(${CEF_INCLUDE_DIR})
if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
# On Linux we require GTK
if(UNIX)
# Find GTK
find_package(GTK2 REQUIRED)
include_directories(${GTK2_INCLUDE_DIRS})
endif()
# Set up the source and header files
set(source webview_chromium1.cpp webview_chromium3.cpp)
set(headers webview_chromium1.h webview_chromium3.h webview_chromium.h)
# Find wxWidgets
find_package(wxWidgets COMPONENTS webview adv xml stc scintilla core base REQUIRED)
include(${wxWidgets_USE_FILE})
# Addwxwebviewchromium to a simple library so we can use it in all samples
add_library(wvc STATIC ${source} ${headers})
add_subdirectory(samples)