2017-11-30 21:00:47 +01:00
|
|
|
cmake_minimum_required (VERSION 3.2.0)
|
|
|
|
|
|
|
|
SET(CMAKE_COLOR_MAKEFILE ON)
|
|
|
|
|
|
|
|
project(breakhack C)
|
|
|
|
|
|
|
|
add_subdirectory(linkedlist)
|
|
|
|
include_directories(linkedlist)
|
|
|
|
add_definitions("-Wall")
|
|
|
|
|
|
|
|
# PROGRAMS:
|
2017-12-01 16:03:19 +01:00
|
|
|
add_executable(breakhack
|
2017-11-30 21:00:47 +01:00
|
|
|
src/main
|
|
|
|
src/texture
|
|
|
|
src/screenresolution
|
|
|
|
src/sprite
|
|
|
|
src/util
|
|
|
|
src/player
|
2017-12-01 16:03:19 +01:00
|
|
|
src/map
|
2017-12-02 23:32:40 +01:00
|
|
|
src/map_lua
|
2017-12-01 16:03:19 +01:00
|
|
|
src/camera
|
2017-12-05 08:30:08 +01:00
|
|
|
src/timer
|
2017-11-30 21:00:47 +01:00
|
|
|
)
|
|
|
|
|
2017-12-01 16:03:19 +01:00
|
|
|
target_link_libraries(breakhack
|
2017-11-30 21:00:47 +01:00
|
|
|
linkedlist
|
|
|
|
-lSDL2
|
|
|
|
-lSDL2_image
|
|
|
|
-lSDL2_mixer
|
|
|
|
-lSDL2_ttf
|
|
|
|
-lX11
|
2017-12-02 16:24:31 +01:00
|
|
|
-lXrandr
|
2017-12-02 23:32:40 +01:00
|
|
|
-llua
|
2017-11-30 21:00:47 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
# TESTS:
|
|
|
|
enable_testing()
|
|
|
|
|
|
|
|
add_executable(test_util test/check_util src/util)
|
|
|
|
target_link_libraries(test_util -lcheck)
|
|
|
|
add_test(test_util test_util)
|