add new thirdparty lib, SDL2
This commit is contained in:
parent
9210dec86d
commit
0760866176
@ -5,6 +5,7 @@ target_link_libraries(nf7_core
|
||||
luajit
|
||||
nf7_config
|
||||
nf7_iface
|
||||
SDL2
|
||||
sqlite
|
||||
uvw
|
||||
)
|
||||
|
20
thirdparty/CMakeLists.txt
vendored
20
thirdparty/CMakeLists.txt
vendored
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user