1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Include header files in CMake sources (#16297)

This commit is contained in:
Lucas OH 2025-07-12 13:23:35 +02:00 committed by GitHub
parent f71e1447c9
commit ce2380b58e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 139 additions and 6 deletions

View file

@ -1,4 +1,4 @@
add_library(bitop STATIC bit.cpp)
add_library(bitop STATIC bit.cpp bit.h)
target_include_directories(bitop PRIVATE ${LUA_INCLUDE_DIR})
set(LUA_BIT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} PARENT_SCOPE)

View file

@ -12,7 +12,7 @@
# - return os << duration.value() << ' ' << duration.unitsAsString();
# + return os << std::fixed << duration.value() << ' ' << duration.unitsAsString();
add_library(catch2 STATIC catch_amalgamated.cpp)
add_library(catch2 STATIC catch_amalgamated.cpp catch_amalgamated.hpp)
target_compile_definitions(catch2 PRIVATE CATCH_CONFIG_NOSTDOUT CATCH_AMALGAMATED_CUSTOM_MAIN)
add_library(Catch2::Catch2 ALIAS catch2)
target_include_directories(catch2 INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")

View file

@ -1,3 +1,3 @@
add_library(gmp STATIC mini-gmp.c)
add_library(gmp STATIC mini-gmp.c mini-gmp.h)
target_link_libraries(gmp)

View file

@ -1,3 +1,3 @@
add_library(jsoncpp STATIC jsoncpp.cpp)
add_library(jsoncpp STATIC jsoncpp.cpp json/json.h json/json-forwards.h)
target_link_libraries(jsoncpp)

View file

@ -1,6 +1,8 @@
# Lua core source files.
file(GLOB LUA_CORE_HDRS "${CMAKE_CURRENT_SOURCE_DIR}/*.h")
set(LUA_CORE_SRC
${LUA_CORE_HDRS}
lapi.c
lauxlib.c
lbaselib.c

View file

@ -1,6 +1,6 @@
project(sha256 C)
add_library(sha256 STATIC sha256.c)
add_library(sha256 STATIC sha256.c my_sha256.h)
target_include_directories(sha256 INTERFACE .)