2015-08-20 13:14:22 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
|
|
project(hello_d C D)
|
|
|
|
|
2015-09-17 14:36:22 +00:00
|
|
|
set(CMAKE_D_FLAGS_DEBUG "${CMAKE_D_FLAGS_DEBUG} -funittest -O0")
|
|
|
|
|
2015-08-20 13:14:22 +00:00
|
|
|
include_directories(
|
2015-09-16 12:59:10 +00:00
|
|
|
src/
|
2015-08-20 13:14:22 +00:00
|
|
|
)
|
|
|
|
include_directories(SYSTEM
|
|
|
|
lib/DerelictSDL2/source
|
|
|
|
lib/DerelictUtil/source
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
2015-09-16 12:59:10 +00:00
|
|
|
src/main.d
|
|
|
|
src/gameobj.d
|
|
|
|
src/bpg.d
|
|
|
|
src/texture.d
|
|
|
|
src/gameobjjumping.d
|
2015-09-17 14:36:22 +00:00
|
|
|
src/vector.d
|
2015-09-18 14:06:58 +00:00
|
|
|
src/collisionline.d
|
|
|
|
src/rect.d
|
|
|
|
src/collidingentity.d
|
2015-09-18 15:33:50 +00:00
|
|
|
src/objref.d
|
2015-08-20 13:14:22 +00:00
|
|
|
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/functions.d
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/image.d
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/mixer.d
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/net.d
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/sdl.d
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/ttf.d
|
|
|
|
lib/DerelictSDL2/source/derelict/sdl2/types.d
|
|
|
|
|
|
|
|
lib/DerelictUtil/source/derelict/util/exception.d
|
|
|
|
lib/DerelictUtil/source/derelict/util/loader.d
|
|
|
|
lib/DerelictUtil/source/derelict/util/sharedlib.d
|
|
|
|
lib/DerelictUtil/source/derelict/util/system.d
|
|
|
|
lib/DerelictUtil/source/derelict/util/wintypes.d
|
|
|
|
lib/DerelictUtil/source/derelict/util/xtypes.d
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
dl
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lib/libbpg-0.9.5/libbpg.a
|
|
|
|
)
|