Commit ecfc27df authored by schultezub's avatar schultezub
Browse files

Fixed CMake files to get TUMVis running for the first time... uiuiuiuiuiui...

git-svn-id: https://camplinux.in.tum.de/svn/campvis/trunk@162 bb408c1c-ae56-11e1-83d9-df6b3e0c105e
parent 9d031b9a
......@@ -111,6 +111,8 @@ IF(WIN32)
SET(CMAKE_EXE_LINKER_FLAGS_DEBUG "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /INCREMENTAL:NO")
ENDIF()
LIST(APPEND TUMVIS_EXTERNAL_LIBRARIES netapi32 version)
ELSEIF(UNIX)
LIST(APPEND TUMVIS_DEFINITIONS "-DUNIX")
LIST(APPEND TUMVIS_DEFINITIONS "-D__STDC_CONSTANT_MACROS")
......
......@@ -26,4 +26,4 @@ ADD_EXECUTABLE(tumvis-core
)
ADD_DEFINITIONS(${TUMVIS_DEFINITIONS} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${TUMVIS_INCLUDE_DIRECTORIES})
TARGET_LINK_LIBRARIES(tumvis-core tgt ${QT_LIBRARIES})
TARGET_LINK_LIBRARIES(tumvis-core tgt ${TUMVIS_EXTERNAL_LIBRARIES} ${QT_LIBRARIES})
......@@ -4,27 +4,25 @@
#include "tumvispainter.h"
namespace TUMVis {
using namespace TUMVis;
int main(int argc, char** argv) {
tgt::QtApplication* app = new tgt::QtApplication(argc, argv);
tgt::QtCanvas* canvas = new tgt::QtCanvas("TUMVis");
int main(int argc, char** argv) {
tgt::QtApplication* app = new tgt::QtApplication(argc, argv);
tgt::QtCanvas* canvas = new tgt::QtCanvas("TUMVis");
app->addCanvas(canvas);
app->addCanvas(canvas);
app->init();
app->init();
tgt::Camera camera;
canvas->setCamera(&camera);
TumVisPainter painter(canvas);
canvas->setPainter(&painter);
tgt::Camera camera;
canvas->setCamera(&camera);
TumVisPainter painter(canvas);
canvas->setPainter(&painter);
app->run();
app->run();
delete canvas;
delete app;
return 0;
}
delete canvas;
delete app;
return 0;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment