-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
588 lines (505 loc) · 19.5 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
###############################################################################
# Dullahan CMake file - Callum Prentice - 2020-05-03
###############################################################################
cmake_minimum_required(VERSION 3.11)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_compile_options("-Wno-array-bounds")
endif()
###############################################################################
# Dullahan main project/solution
project(dullahan)
###############################################################################
# functions
function(check_exists variable)
if(NOT ${variable})
message(FATAL_ERROR ${variable} " is not set")
else()
message(STATUS "--> ${variable} is ${${variable}}")
endif()
endfunction()
option( USE_SPOTIFY_CEF "Use a prebuild CEF from spotify" Off )
option( SPOTIFY_CEF_URL "URL to the prebuild CEF from spotify" "" )
if( USE_SPOTIFY_CEF )
include(FetchContent)
FetchContent_Declare( cef_prebuild URL ${SPOTIFY_CEF_URL} )
FetchContent_MakeAvailable(cef_prebuild)
set(CEF_ROOT "${cef_prebuild_SOURCE_DIR}")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${cef_prebuild_SOURCE_DIR}/cmake")
find_package(CEF REQUIRED)
endif()
if( NOT USE_SPOTIFY_CEF )
###############################################################################
# The user must pass in CEF_WRAPPER_DIR and CEF_WRAPPER_BUILD_DIR then we
# derrive all the other ones we need based on those
set(CEF_INCLUDE_DIR ${CEF_WRAPPER_DIR}/include)
set(CEF_RELEASE_LIB_DIR ${CEF_WRAPPER_DIR}/Release)
set(CEF_RELEASE_DLL_LIB_DIR ${CEF_WRAPPER_BUILD_DIR}/libcef_dll_wrapper/Release)
set(CEF_RELEASE_BIN_DIR ${CEF_WRAPPER_DIR}/Release)
set(CEF_RESOURCES_DIR ${CEF_WRAPPER_DIR}/Resources)
# Check if all our variables exist and bail with
# a fatal error if any of them are missing
check_exists(CEF_WRAPPER_DIR)
check_exists(CEF_WRAPPER_BUILD_DIR)
check_exists(CEF_INCLUDE_DIR)
check_exists(CEF_RELEASE_LIB_DIR)
check_exists(CEF_RELEASE_DLL_LIB_DIR)
check_exists(CEF_RELEASE_BIN_DIR)
check_exists(CEF_RESOURCES_DIR)
else()
set(CEF_INCLUDE_DIR ${cef_prebuild_SOURCE_DIR}/include)
set(CEF_RELEASE_LIB_DIR ${cef_prebuild_SOURCE_DIR}/Release)
set(CEF_RELEASE_DLL_LIB_DIR ${CEF_WRAPPER_BUILD_DIR}/libcef_dll_wrapper/Release)
set(CEF_RELEASE_BIN_DIR ${cef_prebuild_SOURCE_DIR}/Release)
set(CEF_RESOURCES_DIR ${cef_prebuild_SOURCE_DIR}/Resources)
set( CEF_DLL_LIBRARY libcef_dll_wrapper )
set( CEF_LIBRARY ${CEF_LIB_RELEASE} )
endif()
###############################################################################
# location of CEF libraries we link against
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_library(
CEF_LIBRARY_RELEASE
NAMES libcef.lib
PATHS ${CEF_RELEASE_LIB_DIR}
NO_DEFAULT_PATH
)
find_library(
CEF_DLL_LIBRARY_RELEASE
NAMES libcef_dll_wrapper.lib
PATHS ${CEF_RELEASE_DLL_LIB_DIR}
NO_DEFAULT_PATH
)
# Confirm that we were able to find our link libs
check_exists(CEF_LIBRARY_RELEASE)
check_exists(CEF_DLL_LIBRARY_RELEASE)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
find_library(
CEF_DLL_LIBRARY_RELEASE
NAMES libcef_dll_wrapper.a
PATHS ${CEF_RELEASE_DLL_LIB_DIR}
)
set(CEF_FRAMEWORK "'${CEF_RELEASE_BIN_DIR}/Chromium Embedded Framework.framework'")
find_library(OPENGL_FRAMEWORK OpenGL)
find_library(COCOA_FRAMEWORK Cocoa)
# Check that we were able to find our build components
check_exists(CEF_DLL_LIBRARY_RELEASE)
check_exists(CEF_FRAMEWORK)
check_exists(OPENGL_FRAMEWORK)
check_exists(COCOA_FRAMEWORK)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CMAKE_CXX_LINK_FLAGS "-Wl,--no-keep-memory -Wl,--build-id -Wl,-rpath,'$ORIGIN:$ORIGIN/../lib' -Wl,--exclude-libs,ALL")
if( NOT USE_SPOTIFY_CEF )
find_library(
CEF_LIBRARY_RELEASE
NAMES libcef.so
PATHS ${CEF_RELEASE_LIB_DIR}
PATH_SUFFIXES release
)
find_library(
CEF_DLL_LIBRARY_RELEASE
NAMES libcef_dll_wrapper.a
PATHS ${CEF_WRAPPER_BUILD_DIR}/libcef_dll_wrapper/
PATH_SUFFIXES release
)
set(CEF_LIBRARY ${CEF_LIBRARY_RELEASE} )
set(CEF_DLL_LIBRARY ${CEF_DLL_LIBRARY_RELEASE} )
else()
set( CEF_DLL_LIBRARY libcef_dll_wrapper )
set( CEF_LIBRARY ${CEF_LIB_RELEASE} )
endif()
endif()
###############################################################################
# Final layer of finding the right libs for each combination
# of name, platform, configuration, type etc.
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CEF_LIBRARY
optimized ${CEF_LIBRARY_RELEASE}
)
set(CEF_DLL_LIBRARY
optimized ${CEF_DLL_LIBRARY_RELEASE}
)
endif()
check_exists(CEF_LIBRARY)
check_exists(CEF_DLL_LIBRARY)
###############################################################################
# set C and C++ flags
# Warnings at level 4 (-W4 generates too much spew) but disable:
# 4100 "unreferenced parameter" - too much spew for cef code
# 4127 "conditional is constant" - I use an explicity var to turn code on and off which triggers this
# 4505 "unreferenced local function has been removed" - supress meaningless freeglut warning
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -W4 -wd4100 -wd4127 -wd4505")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -std=c++11 -xobjective-c++")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")
if( NOT ENABLE_CXX11_ABI )
add_definitions(-D_GLIBCXX_USE_CXX11_ABI=0)
endif()
endif()
###############################################################################
# Dullahan libary
# add source files to library
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(KEYBOARD_IMPL_SRC_FILE src/dullahan_impl_keyboard_win.cpp)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(KEYBOARD_IMPL_SRC_FILE src/dullahan_impl_keyboard_mac.mm)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
set(KEYBOARD_IMPL_SRC_FILE src/dullahan_impl_keyboard_linux.cpp)
endif()
add_library(
dullahan
STATIC
src/dullahan.cpp
src/dullahan.h
src/dullahan_browser_client.cpp
src/dullahan_browser_client.h
src/dullahan_callback_manager.cpp
src/dullahan_callback_manager.h
src/dullahan_debug.h
src/dullahan_impl.cpp
src/dullahan_impl.h
src/dullahan_version.h
src/dullahan_version.h.in
${KEYBOARD_IMPL_SRC_FILE}
src/dullahan_impl_mouse.cpp
src/dullahan_render_handler.cpp
src/dullahan_render_handler.h
)
# define which include directories to pull in
target_include_directories(
dullahan
PUBLIC
${CEF_INCLUDE_DIR}
${CEF_INCLUDE_DIR}/..
)
# turn off spurious linker warnings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(dullahan PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
###############################################################################
# Parse CEF version header and process into the Dullahan header file.
# Only do this if the version input template changed to try to keep
# version/build number the same for the same set of source files)
if("${PROJECT_SOURCE_DIR}/src/dullahan_version.h.in" IS_NEWER_THAN "${PROJECT_SOURCE_DIR}/src/dullahan_version.h")
# Extract CEF/Chrome version info from CEF header
file(STRINGS ${CEF_INCLUDE_DIR}/cef_version.h CEF_VERSION_STR REGEX "\#define CEF_VERSION ")
file(STRINGS ${CEF_INCLUDE_DIR}/cef_version.h CHROME_VERSION_MAJOR_STR REGEX "\#define CHROME_VERSION_MAJOR ")
file(STRINGS ${CEF_INCLUDE_DIR}/cef_version.h CHROME_VERSION_MINOR_STR REGEX "\#define CHROME_VERSION_MINOR ")
file(STRINGS ${CEF_INCLUDE_DIR}/cef_version.h CHROME_VERSION_BUILD_STR REGEX "\#define CHROME_VERSION_BUILD ")
file(STRINGS ${CEF_INCLUDE_DIR}/cef_version.h CHROME_VERSION_PATCH_STR REGEX "\#define CHROME_VERSION_PATCH ")
# Create a build number based on the actual build date/time
string(TIMESTAMP BUILDNUMBER "#define DULLAHAN_VERSION_BUILD %Y%m%d%H%M")
# Parse the version input file into the Dullahan version header
configure_file(
"${PROJECT_SOURCE_DIR}/src/dullahan_version.h.in"
"${PROJECT_SOURCE_DIR}/src/dullahan_version.h"
)
endif()
###############################################################################
# Dullahan host executable
# add source files to the application
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_executable(
dullahan_host
src/host/dullahan_host.cpp
)
# define which include directories to pull in
target_include_directories(
dullahan_host
PUBLIC
${CEF_INCLUDE_DIR}
${CEF_INCLUDE_DIR}/..
)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_executable(
DullahanHelper
MACOSX_BUNDLE
src/host/dullahan_host.cpp
)
# define which include directories to pull in
target_include_directories(
DullahanHelper
PUBLIC
${CEF_INCLUDE_DIR}
${CEF_INCLUDE_DIR}/..
)
# Info.plist.in template adds a new key called "LSUIElement" with value "true"
# to surpress the appearance of the DullahanHelper app icon in the dock
set_target_properties(DullahanHelper PROPERTIES
MACOSX_BUNDLE_BUNDLE_NAME "DullahanHelper"
MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/src/host/Info.plist.in")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_executable(
dullahan_host
src/host/dullahan_host.cpp
)
target_include_directories(
dullahan_host
PUBLIC
${CEF_INCLUDE_DIR}
${CEF_INCLUDE_DIR}/..
)
endif()
# define which libs to link against
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
target_link_libraries(
dullahan_host
${CEF_LIBRARY}
${CEF_DLL_LIBRARY}
)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
target_link_libraries(
DullahanHelper
${CEF_DLL_LIBRARY}
"-F ${CEF_FRAMEWORK}"
)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
target_link_libraries(
dullahan_host
${CEF_DLL_LIBRARY}
${CEF_LIBRARY}
)
endif()
# we are building Windows executable, not a console app (default) and turn off spurious linker warnings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(dullahan_host PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
set_target_properties(dullahan_host PROPERTIES LINK_FLAGS "/ignore:4099")
add_custom_command(
TARGET dullahan_host POST_BUILD
COMMAND "${CMAKE_MT}" -manifest \"$(ProjectDir)..\\src\\win\\compatibility.manifest\" -outputresource:"$(TargetDir)$(TargetFileName)"\;\#1
COMMENT "Adding custom manifest...")
endif()
# Windows commands to copy CEF binaries and 'resources' folders to
# executable dir since they're needed at runtime
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_custom_command(
TARGET dullahan_host POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_directory
"$<$<CONFIG:release>:${CEF_RELEASE_BIN_DIR}>"
"$<TARGET_FILE_DIR:dullahan_host>"
COMMENT "Copying runtime files to executable directory")
add_custom_command(
TARGET dullahan_host POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy_directory
"${CEF_RESOURCES_DIR}"
"$<TARGET_FILE_DIR:dullahan_host>"
COMMENT "Copying resource files to executable directory")
endif()
###############################################################################
# examples
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
###############################################################################
# webcube example application
# add source file to application
add_executable(
webcube
examples/webcube/webcube.cpp
examples/webcube/webcube.h
examples/webcube/webcube.rc
examples/webcube/resource.h
)
# define which include directories to pull in
target_include_directories(
webcube
PUBLIC
src
)
# define which libs to link against
target_link_libraries(
webcube
dullahan
${CEF_LIBRARY}
${CEF_DLL_LIBRARY}
opengl32
glu32
comctl32
winmm
)
# we are building Windows executable, not a console app (default) and turn off spurious linker warnings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(webcube PROPERTIES LINK_FLAGS_RELEASE "/SUBSYSTEM:WINDOWS")
set_target_properties(webcube PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
# webcube example dependes on main library and host executable
add_dependencies(webcube dullahan)
add_dependencies(webcube dullahan_host)
# set the web cube example as the default startup project in Visual Studio
if("${CMAKE_VERSION}" VERSION_GREATER 3.6.2)
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
SET_PROPERTY(DIRECTORY PROPERTY VS_STARTUP_PROJECT "webcube")
endif()
endif()
add_custom_command(
TARGET webcube POST_BUILD
COMMAND "${CMAKE_MT}" -manifest \"$(ProjectDir)..\\src\\win\\compatibility.manifest\" -outputresource:"$(TargetDir)$(TargetFileName)"\;\#1
COMMENT "Adding custom manifest...")
###############################################################################
# simplegl example application using FreeGLUT
# add source file to application
add_executable(
simplegl
examples/simplegl/simplegl.cpp
)
# define which include directories to pull in
target_include_directories(
simplegl
PUBLIC
src
examples/simplegl/freeglut/include/GL
)
# determine location of FreeGLUT library to link against based on bitwidth
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(FREEGLUT_LIBRARY "${PROJECT_SOURCE_DIR}/examples/simplegl/freeglut/lib/x64/freeglut.lib")
set(FREEGLUT_DLL "${PROJECT_SOURCE_DIR}/examples/simplegl/freeglut/bin/x64/freeglut.dll")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(FREEGLUT_LIBRARY "${PROJECT_SOURCE_DIR}/examples/simplegl/freeglut/lib/freeglut.lib")
set(FREEGLUT_DLL "${PROJECT_SOURCE_DIR}/examples/simplegl/freeglut/bin/freeglut.dll")
endif()
# copy over freeglut.dll
add_custom_command(
TARGET simplegl POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy
"${FREEGLUT_DLL}"
"$<TARGET_FILE_DIR:simplegl>"
COMMENT "Copying FreeGLUT DLL to executable directory")
# define which libs to link against
target_link_libraries(
simplegl
dullahan
${CEF_LIBRARY}
${CEF_DLL_LIBRARY}
${FREEGLUT_LIBRARY}
)
# turn off spurious linker warnings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(simplegl PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
add_custom_command(
TARGET simplegl POST_BUILD
COMMAND "${CMAKE_MT}" -manifest \"$(ProjectDir)..\\src\\win\\compatibility.manifest\" -outputresource:"$(TargetDir)$(TargetFileName)"\;\#1
COMMENT "Adding custom manifest...")
###############################################################################
# console example application
# add source file to application
add_executable(
console
examples/console/console.cpp
)
# define which include directories to pull in
target_include_directories(
console
PUBLIC
src
)
# define which libs to link against
target_link_libraries(
console
dullahan
${CEF_LIBRARY}
${CEF_DLL_LIBRARY}
)
# turn off spurious linker warnings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(console PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
add_custom_command(
TARGET console POST_BUILD
COMMAND "${CMAKE_MT}" -manifest \"$(ProjectDir)..\\src\\win\\compatibility.manifest\" -outputresource:"$(TargetDir)$(TargetFileName)"\;\#1
COMMENT "Adding custom manifest...")
###############################################################################
# minimal CEF console example (doesn't use Dullahan)
# add source file to the application
add_executable(
cef_minimal
examples/cef_minimal/cef_minimal.cpp
)
# define which include directories to pull in
target_include_directories(
cef_minimal
PUBLIC
${CEF_INCLUDE_DIR}
${CEF_INCLUDE_DIR}/..
)
# define which libs to link against
target_link_libraries(
cef_minimal
${CEF_LIBRARY}
${CEF_DLL_LIBRARY}
)
# cef_minimal example dependes on host executable
add_dependencies(cef_minimal dullahan_host)
# turn off spurious linker warnings
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set_target_properties(cef_minimal PROPERTIES LINK_FLAGS "/ignore:4099")
endif()
add_custom_command(
TARGET cef_minimal POST_BUILD
COMMAND "${CMAKE_MT}" -manifest \"$(ProjectDir)..\\src\\win\\compatibility.manifest\" -outputresource:"$(TargetDir)$(TargetFileName)"\;\#1
COMMENT "Adding custom manifest...")
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
###############################################################################
# osxgl example application
# add source file to application
add_executable(
osxgl
MACOSX_BUNDLE
examples/osxgl/AppDelegate.h
examples/osxgl/AppDelegate.mm
examples/osxgl/LLOsxglView.h
examples/osxgl/LLOsxglView.mm
examples/osxgl/main.m
)
# define which include directories to pull in
target_include_directories(
osxgl
PUBLIC
src
)
# define which libs to link against
target_link_libraries(
osxgl
dullahan
${CEF_DLL_LIBRARY}
"-F ${CEF_FRAMEWORK}"
${OPENGL_FRAMEWORK}
${COCOA_FRAMEWORK}
)
add_dependencies(osxgl dullahan)
add_dependencies(osxgl DullahanHelper)
# default Inof.plist.in template in CMake doesn't contain
# the NSPrincipalClass definition so we must add it
set(PRINCIPAL_CLASS "NSApplication")
set_target_properties(osxgl PROPERTIES
MACOSX_BUNDLE_BUNDLE_NAME "OSXGL Test"
MACOSX_BUNDLE_INFO_PLIST "${PROJECT_SOURCE_DIR}/examples/osxgl/Info.plist.in")
endif()
###############################################################################
# generic commands that have to go after everything else
if(CMAKE_CONFIGURATION_TYPES)
set(CMAKE_CONFIGURATION_TYPES "Release")
endif()
# Install the Dullahan library and host executable
if( USE_SPOTIFY_CEF )
install( TARGETS dullahan_host DESTINATION bin/release )
install( TARGETS dullahan ${CEF_DLL_LIBRARY} DESTINATION lib/release )
foreach(binFile IN LISTS CEF_BINARY_FILES)
if(IS_DIRECTORY ${CEF_BINARY_DIR_RELEASE}/${binFile} )
install( DIRECTORY ${CEF_BINARY_DIR_RELEASE}/${binFile} DESTINATION lib/release )
install( DIRECTORY ${CEF_BINARY_DIR_RELEASE}/${binFile} DESTINATION bin/release )
else()
install( PROGRAMS ${CEF_BINARY_DIR_RELEASE}/${binFile} DESTINATION lib/release )
install( PROGRAMS ${CEF_BINARY_DIR_RELEASE}/${binFile} DESTINATION bin/release )
endif()
endforeach()
foreach(resFile IN LISTS CEF_RESOURCE_FILES)
if(IS_DIRECTORY ${CEF_RESOURCE_DIR}/${resFile} )
install( DIRECTORY ${CEF_RESOURCE_DIR}/${resFile} DESTINATION resources)
else()
install( FILES ${CEF_RESOURCE_DIR}/${resFile} DESTINATION resources)
endif()
endforeach()
endif()