27 lines
716 B
CMake
27 lines
716 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(browser CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(BUILD_CURL_EXE OFF CACHE BOOL "" FORCE)
|
|
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
|
set(BUILD_STATIC_CURL ON CACHE BOOL "" FORCE)
|
|
if (WIN32)
|
|
set(CURL_USE_SCHANNEL ON CACHE BOOL "" FORCE)
|
|
endif ()
|
|
add_subdirectory(external/curl-8.3.0)
|
|
|
|
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
|
add_subdirectory(external/raylib-4.5.0)
|
|
|
|
add_subdirectory(external/raylib-cpp-4.5.1)
|
|
|
|
add_subdirectory(external/utfcpp-3.2.5)
|
|
|
|
add_executable(browser src/main.cpp src/fetch.cpp
|
|
src/html_parse.cpp)
|
|
|
|
target_include_directories(browser PRIVATE external/raygui-4.0/src)
|
|
|
|
target_link_libraries(browser libcurl raylib raylib_cpp utf8cpp) |