gremlin/CMakeLists.txt
2011-10-07 12:07:36 +02:00

41 lines
1.1 KiB
CMake

cmake_minimum_required (VERSION 2.6)
project (GREMLIN C CXX)
if (MSVC)
add_definitions(/D_USE_MATH_DEFINES)
endif(MSVC)
if (WIN32)
set(PLATFORM_LIBRARIES ws2_32 winmm)
endif(WIN32)
if(UNIX)
set(PLATFORM_LIBRARIES pthread)
endif(UNIX)
include_directories (${GREMLIN_SOURCE_DIR}/libs/glfw/include)
include_directories (${GREMLIN_SOURCE_DIR}/libs/spark/include)
include_directories (${GREMLIN_SOURCE_DIR}/libs/enet/include)
include_directories (${GREMLIN_SOURCE_DIR}/libs/log4cplus/include)
include_directories (${GREMLIN_SOURCE_DIR}/libs/bullet)
include_directories (${GREMLIN_SOURCE_DIR}/libs/yaml-cpp/include)
include_directories (${GREMLIN_SOURCE_DIR}/libs/trimeshloader/include)
find_package(OpenGL)
add_subdirectory (libs/enet)
add_subdirectory (libs/pugixml)
add_subdirectory (libs/bullet)
add_subdirectory (libs/yaml-cpp)
add_subdirectory (libs/log4cplus)
add_subdirectory (libs/trimeshloader)
add_subdirectory (src/common)
add_subdirectory (src/server)
if (OPENGL_FOUND)
add_subdirectory (libs/glfw)
add_subdirectory (libs/spark)
add_subdirectory (src/client)
endif(OPENGL_FOUND)