1bcaf6b615
Remove legacy build files (Makefile, makefile.unix/mingw/osx, triangles-qt.pro) and replace with CMake build system. Includes find modules for all dependencies, LevelDB bundled build, and updated CI workflow for CMake + Ninja on all platforms. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
492 B
CMake
15 lines
492 B
CMake
# cmake/BuildLevelDB.cmake
|
|
# Builds the bundled LevelDB via its native CMake sub-build.
|
|
# Exposes leveldb_lib, leveldb_memenv, leveldb_bundled, and build_leveldb.
|
|
|
|
set(LEVELDB_SOURCE_DIR "${CMAKE_SOURCE_DIR}/src/leveldb")
|
|
set(LEVELDB_BINARY_DIR "${CMAKE_BINARY_DIR}/leveldb")
|
|
|
|
if(NOT TARGET leveldb_lib)
|
|
add_subdirectory("${LEVELDB_SOURCE_DIR}" "${LEVELDB_BINARY_DIR}")
|
|
endif()
|
|
|
|
if(NOT TARGET build_leveldb)
|
|
add_custom_target(build_leveldb DEPENDS leveldb_lib leveldb_memenv)
|
|
endif()
|