cmake_minimum_required(VERSION 3.20) project(aya-cef-subprocess) if(WIN32) set(CEF_PLATFORM "windows64") elseif(UNIX) set(CEF_PLATFORM "linux64") endif() set(CMAKE_CXX_STANDARD 20) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") set(CEF_USE_SANDBOX TRUE CACHE BOOL "Force turning off of sandbox") set(CEF_VERSION 123.0.13+gfc703fb+chromium-123.0.6312.124) set(cefName cef_binary_${CEF_VERSION}_${CEF_PLATFORM}) include(cef_cmake.cmake) add_subdirectory(cef_cmake) link_directories(${CMAKE_SOURCE_DIR}/cef_cmake/${cefName}/Release/) link_directories(${CMAKE_SOURCE_DIR}/build/cef_cmake/) if (WIN32) add_executable(aya-cef-subprocess WIN32 main.cpp resources/win32.rc) else() add_executable(aya-cef-subprocess main.cpp) endif() target_link_libraries(aya-cef-subprocess libcef cefdll_wrapper) set_target_properties(aya-cef-subprocess PROPERTIES OUTPUT_NAME "Aya.WebHelper")