jumping-in-d/CMakeLists.txt

38 lines
1,012 B
CMake

cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(hello_d C D)
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
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
)