summaryrefslogtreecommitdiffstats
path: root/src/Noise/CMakeLists.txt
blob: ab4cf031be90e7b711c0b55246b365b0ff8eff48 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

cmake_minimum_required (VERSION 2.6)
project (MCServer)

include_directories ("${PROJECT_SOURCE_DIR}/../")

SET (SRCS
	Noise.cpp
)

SET (HDRS
	Noise.h
	OctavedNoise.h
	RidgedNoise.h
)

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
	set_source_files_properties(Noise.cpp PROPERTIES COMPILE_FLAGS "-Wno-error=old-style-cast")
endif()

if(NOT MSVC)
	add_library(Noise ${SRCS} ${HDRS})

	target_link_libraries(Noise OSSupport)
endif()