Add CMakeLists.txt

master
Elias Fleckenstein 2020-04-25 18:58:55 +02:00
parent 00bc2ed25c
commit 2276afa329
2 changed files with 28 additions and 0 deletions

27
CMakeLists.txt Normal file
View File

@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.0)
project(dragonblocks)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
add_executable(dragonblocks
src/entity.cpp
src/game.cpp
src/graphics.cpp
src/inventory.cpp
src/main.cpp
src/map.cpp
src/mapgen.cpp
src/mods.cpp
src/node.cpp
src/player.cpp
src/texture.cpp
src/threads.cpp
src/util.cpp
)
target_link_libraries(dragonblocks
GL
glut
lua5.3
pthread
png16
m
)

1
clean.sh Normal file
View File

@ -0,0 +1 @@
rm -rf CMakeFiles cmake_install.cmake CMakeCache.txt Makefile 2> /dev/null