mirror of
https://github.com/love2d/megasource.git
synced 2026-08-12 08:30:59 +02:00
22 lines
625 B
CMake
22 lines
625 B
CMake
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|
# Protop: run cmake like this: cmake -G "<generator>" -H. -Bbuild
|
|
message(FATAL_ERROR "Prevented in-tree build.")
|
|
endif()
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
project(ldep)
|
|
|
|
set(DEP_ZLIB_VER "1.2.8")
|
|
set(DEP_PHYSFS_VER "2.0.3")
|
|
|
|
set(ZLIB_FOUND TRUE)
|
|
set(ZLIB_LIBRARY zlibstatic)
|
|
set(ZLIB_INCLUDE_DIR .)
|
|
|
|
add_subdirectory("libs/zlib-${DEP_ZLIB_VER}" ${CMAKE_BINARY_DIR}/zlib)
|
|
add_subdirectory("libs/physfs-${DEP_PHYSFS_VER}" ${CMAKE_BINARY_DIR}/physfs)
|
|
|
|
add_executable(ldeptest src/test.cpp)
|
|
target_link_libraries(ldeptest zlibstatic physfs-static)
|