add new thirdparty lib, SDL2

This commit is contained in:
falsycat 2023-09-17 23:05:53 +09:00
parent 9210dec86d
commit 0760866176
2 changed files with 13 additions and 8 deletions

View File

@ -5,6 +5,7 @@ target_link_libraries(nf7_core
luajit
nf7_config
nf7_iface
SDL2
sqlite
uvw
)

View File

@ -2,6 +2,15 @@ set(BUILD_TESTING OFF)
include(FetchContent)
# ---- gtest (BSD-3-Clause)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.13.0
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
# ---- luajit (MIT)
FetchContent_Declare(
luajit
@ -11,14 +20,9 @@ FetchContent_Declare(
FetchContent_Populate(luajit)
include(luajit.cmake)
# ---- gtest (BSD-3-Clause)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG v1.13.0
)
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
# ---- SDL2 (zlib)
find_package(SDL2 REQUIRED GLOBAL)
add_library(SDL2 ALIAS SDL2::SDL2)
# ---- SQLite (public domain)
FetchContent_Declare(