gremlin/src/CMakeLists.txt

36 lines
724 B
CMake
Raw Normal View History

2011-01-04 18:11:59 +01:00
# find external software
find_package(OpenGL)
# set includes
include_directories (${GREMLIN_SOURCE_DIR}/libs/glfw/include)
include_directories (${GREMLIN_SOURCE_DIR}/libs/enet/include)
2011-01-05 23:02:10 +01:00
include_directories (${GREMLIN_SOURCE_DIR}/libs/spark/include)
2011-01-04 18:11:59 +01:00
include_directories (${GREMLIN_SOURCE_DIR}/src)
# define executable
add_executable( gremlin
2011-01-05 15:00:09 +01:00
main
game
2011-01-05 23:02:10 +01:00
Explosion
oglfont
2011-01-04 18:11:59 +01:00
)
# set dependencies
add_dependencies( gremlin
2011-01-05 23:02:10 +01:00
glfw enet spark
2011-01-04 18:11:59 +01:00
)
if (WIN32)
set(PLATFORM_LIBRARIES ws2_32 winmm)
endif(WIN32)
if(UNIX)
set(PLATFORM_LIBRARIES GL X11 Xrandr pthread asound)
2011-01-04 18:11:59 +01:00
endif(UNIX)
target_link_libraries(gremlin
2011-01-05 23:02:10 +01:00
glfw enet spark ${OPENGL_LIBRARY} ${PLATFORM_LIBRARIES}
2011-01-04 18:11:59 +01:00
)