shithub: duke3d

ref: 5b087943bb253924cb93d722be795dd9b03fe0f1
dir: /Engine/CMakeLists.txt/

View raw version

set(project_name "Engine")

set(src_files
	src/build.h
	src/cache.c
	src/cache.h
	src/display.c
	src/display.h
	src/draw.c
	src/draw.h
	src/engine.c
	src/engine.h
	src/filesystem.c
	src/filesystem.h
	src/fixedPoint_math.c
	src/fixedPoint_math.h
	src/icon.h
	src/macos_compat.h
	src/mmulti.c
	src/mmulti.h
	src/platform.h
	src/sdl_util.h
	src/tiles.c
	src/tiles.h
	src/unix_compat.h
	src/win32_compat.h
)

include_directories(${SDL2_INCLUDE_DIR})
add_library(${project_name} STATIC ${src_files})
#set_target_properties(${project_name} PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
set_target_properties(${project_name} PROPERTIES OUTPUT_NAME "Engine${project_suffix}")