summaryrefslogblamecommitdiffstats
path: root/src/OSSupport/CMakeLists.txt
blob: 45df0c1a34498288a1a2ac8371f23afd9f7c7cbc (plain) (tree)
1
2
3
4
5
6





                                                 








                           

                         











                         

                       

                

                                              
 
                
                                                           
               
       

cmake_minimum_required (VERSION 2.6)
project (MCServer)

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

SET (SRCS
	CriticalSection.cpp
	Errors.cpp
	Event.cpp
	File.cpp
	GZipFile.cpp
	IsThread.cpp
	ListenThread.cpp
	Semaphore.cpp
	Socket.cpp
	SocketThreads.cpp
	Timer.cpp)

SET (HDRS
	CriticalSection.h
	Errors.h
	Event.h
	File.h
	GZipFile.h
	IsThread.h
	ListenThread.h
	Queue.h
	Semaphore.h
	Socket.h
	SocketThreads.h
	Timer.h)

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

	if(UNIX)
		target_link_libraries(OSSupport pthread rt)
	endif()
endif()