gremlin/CMakeLists.txt

41 lines
1.1 KiB
CMake
Raw Normal View History

2011-01-04 17:11:59 +00:00
cmake_minimum_required (VERSION 2.6)
project (GREMLIN C CXX)
2011-01-17 20:50:50 +00:00
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)
2011-10-07 10:07:36 +00:00
include_directories (${GREMLIN_SOURCE_DIR}/libs/log4cplus/include)
2011-01-18 20:02:48 +00:00
include_directories (${GREMLIN_SOURCE_DIR}/libs/bullet)
2011-01-24 22:52:12 +00:00
include_directories (${GREMLIN_SOURCE_DIR}/libs/yaml-cpp/include)
2011-01-19 22:20:08 +00:00
include_directories (${GREMLIN_SOURCE_DIR}/libs/trimeshloader/include)
2011-01-17 20:50:50 +00:00
2011-01-14 21:02:36 +00:00
find_package(OpenGL)
2011-01-12 21:05:22 +00:00
2011-01-17 20:50:50 +00:00
add_subdirectory (libs/enet)
2011-01-18 19:52:08 +00:00
add_subdirectory (libs/pugixml)
2011-01-18 20:02:48 +00:00
add_subdirectory (libs/bullet)
2011-01-24 22:52:12 +00:00
add_subdirectory (libs/yaml-cpp)
2011-10-07 10:07:36 +00:00
add_subdirectory (libs/log4cplus)
2011-01-19 22:20:08 +00:00
add_subdirectory (libs/trimeshloader)
2011-01-17 20:50:50 +00:00
add_subdirectory (src/common)
add_subdirectory (src/server)
2011-01-14 21:02:36 +00:00
if (OPENGL_FOUND)
2011-01-12 21:05:22 +00:00
add_subdirectory (libs/glfw)
add_subdirectory (libs/spark)
2011-01-17 20:50:50 +00:00
add_subdirectory (src/client)
2011-01-14 21:02:36 +00:00
endif(OPENGL_FOUND)
2011-01-17 20:50:50 +00:00