mirror of
https://bitbucket.org/King_DuckZ/jumping-in-d.git
synced 2024-10-30 02:49:01 +00:00
45 lines
1.1 KiB
CMake
45 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
|
|
project(hello_d C D)
|
|
|
|
set(CMAKE_D_FLAGS_DEBUG "${CMAKE_D_FLAGS_DEBUG} -funittest -O0")
|
|
|
|
include_directories(
|
|
src/
|
|
)
|
|
include_directories(SYSTEM
|
|
lib/DerelictSDL2/source
|
|
lib/DerelictUtil/source
|
|
)
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
src/main.d
|
|
src/gameobj.d
|
|
src/bpg.d
|
|
src/texture.d
|
|
src/gameobjjumping.d
|
|
src/vector.d
|
|
src/collisionline.d
|
|
src/rect.d
|
|
src/collidingentity.d
|
|
src/objref.d
|
|
|
|
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
|
|
)
|