mirror of https://github.com/mosra/magnum.git
Browse Source
Currently the files are compiled directly into Magnum library, static library is used only for testing purposes.pull/279/head
2 changed files with 9 additions and 5 deletions
@ -1,10 +1,12 @@ |
|||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
||||||
|
|
||||||
add_library(MagnumMath STATIC |
|
||||||
Math.cpp |
|
||||||
) |
|
||||||
|
|
||||||
if(BUILD_TESTS) |
if(BUILD_TESTS) |
||||||
|
|
||||||
|
# Add Math library for testing purposes |
||||||
|
add_library(MagnumMath STATIC |
||||||
|
Math.cpp |
||||||
|
) |
||||||
|
|
||||||
enable_testing() |
enable_testing() |
||||||
add_subdirectory(Test) |
add_subdirectory(Test) |
||||||
endif() |
endif() |
||||||
|
|||||||
Loading…
Reference in new issue