mirror of https://github.com/mosra/magnum.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
431 B
22 lines
431 B
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
|
|
|
find_package(OpenGL REQUIRED) |
|
find_package(GLEW REQUIRED) |
|
|
|
add_subdirectory(Math) |
|
|
|
set(Magnum_SRCS |
|
AbstractObject.cpp |
|
AbstractShaderProgram.cpp |
|
Camera.cpp |
|
Scene.cpp |
|
Shader.cpp |
|
) |
|
|
|
add_library(Magnum SHARED ${Magnum_SRCS}) |
|
target_link_libraries(Magnum ${OPENGL_gl_LIBRARY} ${GLEW_LIBRARY}) |
|
|
|
if(BUILD_TESTS) |
|
enable_testing() |
|
add_subdirectory(Test) |
|
endif()
|
|
|