cmake_minimum_required(VERSION 2.6) project(ZOOM) set(CMAKE_MODULE_PATH ${ZOOM_SOURCE_DIR}) find_package(Boost REQUIRED) find_package(OpenGL REQUIRED) find_package(GLPng REQUIRED) find_package(LibXml2 REQUIRED) include_directories(${Boost_INCLUDE_DIR} ${OPENGL_INCLUDE_DIR} ${GLPNG_INCLUDE_DIR} ${LIBXML2_INCLUDE_DIR}) add_executable(zoom BSPTree.cpp BSPTree.h Game.cpp Game.h config.h gl.h Level.cpp Level.h Renderer.cpp Renderer.h Texture.cpp Texture.h Triangle.h zoom.cpp ) target_link_libraries(zoom ${Boost_LIBRARIES} ${OPENGL_LIBRARIES} ${GLPNG_LIBRARY} ${LIBXML2_LIBRARIES})