CMakeLists.txt 307 Bytes
Newer Older
Pierre Kraemer's avatar
Pierre Kraemer committed
1 2 3 4
cmake_minimum_required(VERSION 2.6)

project(Zinri)

Thery Sylvain's avatar
Thery Sylvain committed
5 6 7
find_package(ZLIB REQUIRED)

include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${ZLIB_INCLUDE_DIRS})
Pierre Kraemer's avatar
Pierre Kraemer committed
8 9 10 11

file(
	GLOB_RECURSE
	source_files
12
	${CMAKE_CURRENT_SOURCE_DIR}/*.c
Pierre Kraemer's avatar
Pierre Kraemer committed
13 14
)

15
add_library( Zinri ${source_files} )
Thery Sylvain's avatar
Thery Sylvain committed
16
target_link_libraries(Zinri ${ZLIB_LIBRARIES})