mirror of https://github.com/mosra/magnum.git
9 changed files with 54 additions and 54 deletions
@ -1,13 +0,0 @@
|
||||
corrade_add_plugin(TGAImporter ${MAGNUM_PLUGINS_IMPORTER_INSTALL_DIR} TGAImporter.conf TGAImporter.cpp) |
||||
target_link_libraries(TGAImporter ${MAGNUM_LIBRARY}) |
||||
|
||||
if(BUILD_TESTS) |
||||
add_library(TGAImporterTestLib TGAImporter.cpp) |
||||
target_link_libraries(TGAImporterTestLib ${MAGNUM_LIBRARY} ${CORRADE_UTILITY_LIBRARY} ${CORRADE_PLUGINMANAGER_LIBRARY}) |
||||
enable_testing() |
||||
add_subdirectory(Test) |
||||
endif() |
||||
|
||||
if(WIN32) |
||||
target_link_libraries(TGAImporter ${CORRADE_UTILITY_LIBRARY} ${CORRADE_PLUGINMANAGER_LIBRARY}) |
||||
endif() |
||||
@ -1,2 +0,0 @@
|
||||
corrade_add_test(TGAImporterTest TGAImporterTest.h TGAImporterTest.cpp) |
||||
target_link_libraries(TGAImporterTest TGAImporterTestLib) |
||||
@ -0,0 +1,13 @@
|
||||
corrade_add_plugin(TgaImporter ${MAGNUM_PLUGINS_IMPORTER_INSTALL_DIR} TgaImporter.conf TgaImporter.cpp) |
||||
target_link_libraries(TgaImporter ${MAGNUM_LIBRARY}) |
||||
|
||||
if(BUILD_TESTS) |
||||
add_library(TgaImporterTestLib TgaImporter.cpp) |
||||
target_link_libraries(TgaImporterTestLib ${MAGNUM_LIBRARY} ${CORRADE_UTILITY_LIBRARY} ${CORRADE_PLUGINMANAGER_LIBRARY}) |
||||
enable_testing() |
||||
add_subdirectory(Test) |
||||
endif() |
||||
|
||||
if(WIN32) |
||||
target_link_libraries(TgaImporter ${CORRADE_UTILITY_LIBRARY} ${CORRADE_PLUGINMANAGER_LIBRARY}) |
||||
endif() |
||||
@ -0,0 +1,2 @@
|
||||
corrade_add_test(TgaImporterTest TgaImporterTest.h TgaImporterTest.cpp) |
||||
target_link_libraries(TgaImporterTest TgaImporterTestLib) |
||||
Loading…
Reference in new issue