--- /dev/null
+.cproject
+.project
ADD_SUBDIRECTORY(cmake)
ADD_SUBDIRECTORY(src)
ADD_SUBDIRECTORY(appli)
+ADD_SUBDIRECTORY(lib)
#-----------------------------------------------------------------------------
OPTION( BUILD_SAMPLES "Build samples ?" OFF)
IF(BUILD_SAMPLES)
IF(CREA_BUILD_WX)
ADD_SUBDIRECTORY(creaNewProject)
+ ADD_SUBDIRECTORY(creaDevManager)
ENDIF(CREA_BUILD_WX)
IF(WIN32)
--- /dev/null
+#============================================================================
+# Builds and install the executable creaDevManager
+
+#============================================================================
+# Appli name
+SET(EXE_NAME creaDevManager)
+
+#============================================================================
+# Sources
+SET(${EXE_NAME}_SOURCES creaDevManager.cpp)
+
+#============================================================================
+# Settings
+SET(${EXE_NAME}_HAS_GUI TRUE)
+SET(${EXE_NAME}_CONSOLE FALSE)
+
+#-Libraries------------------------------------------------------------------
+
+INCLUDE_DIRECTORIES (
+
+# USER! : Add here the directories holding th extra .h files you need
+# e.g.
+# ../../lib/<my_library_I_just_created>
+../../lib/creaDevManagerLib
+)
+
+#-Dependencies---------------------------------------------------------------
+
+# DEPENDENCIES (LIBRARIES TO LINK WITH)
+SET ( ${EXE_NAME}_LINK_LIBRARIES
+ ${crea_LIBRARIES}
+ ${WXWIDGETS_LIBRARIES}
+ # ${KWWidgets_LIBRARIES}
+ # ${VTK_LIBRARIES}
+ # ${ITK_LIBRARIES}
+ # ${GDCM_LIBRARIES}
+ # ${BOOST_LIBRARIES}
+
+ # USER! : Add here those agmonst the various (?) PROJECT LIBRARIES
+ # you need for the current executable
+ # (If you created only one Library, don't forget it !...)
+ creaDevManagerLib
+)
+
+#-Creates and installs the exe-----------------------------------------------
+CREA_ADD_EXECUTABLE( ${EXE_NAME} )
+#============================================================================
--- /dev/null
+#include <creaWx.h>
+#include <stdlib.h>
+#include <iostream> // for std::cout
+#include "creaDevManager.h"
+#include "wxCreaDevManagerMainFrame.h"
+using namespace std;
+
+IMPLEMENT_APP(wxCreaDevManagerApp)
+
+wxCreaDevManagerApp::wxCreaDevManagerApp():wxApp()
+{
+}
+
+bool wxCreaDevManagerApp::OnInit()
+{
+ wxApp::OnInit();
+
+ wxCreaDevManagerMainFrame* mainWindow = new wxCreaDevManagerMainFrame(NULL);
+ mainWindow->SetSize(800, 600);
+ mainWindow->Show(true);
+
+ cout << "listo";
+
+ return true;
+}
--- /dev/null
+/*
+ * creaDevManager.h
+ *
+ * Created on: 19/10/2012
+ * Author: daniel
+ */
+
+#ifndef CREADEVMANAGER_H_
+#define CREADEVMANAGER_H_
+
+class wxCreaDevManagerApp:public wxApp
+{
+ public:
+ wxCreaDevManagerApp();
+
+ virtual bool OnInit();
+
+};
+DECLARE_APP(wxCreaDevManagerApp)
+
+#endif /* CREADEVMANAGER_H_ */
--- /dev/null
+
+# USER! : Add a ADD_SUBDIRECTORY command for each one of your libraries
+# -----
+
+ADD_SUBDIRECTORY(creaDevManagerLib)
+
--- /dev/null
+#----------------------------------------------------------------------------
+# USER! : SET THE NAME OF YOUR LIBRARY
+# (Replace 'MyLib' by your own library name)
+
+#############################
+SET ( LIBRARY_NAME creaDevManagerLib )
+#############################
+
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+# CREATES A USER OPTION IN CMAKE
+OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON)
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+IF ( BUILD_${LIBRARY_NAME} )
+#----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # BUILD LIBRARY
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # LIBRARY HEADERS (TO BE INSTALLED)
+ # EITHER LIST ALL .h, *.txx IN CURRENT DIR USING NEXT LINE:
+
+ FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h" "*.txx")
+
+ # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND
+ # SET ( ${LIBRARY_NAME}_HEADERS
+ #
+ # )
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # LIBRARY SOURCES (TO BE COMPILED)
+ # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE:
+
+ FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc)
+
+ # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION)
+ # SET ( ${LIBRARY_NAME}_SOURCES
+ #
+ # )
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH)
+ #
+ # USER! : Uncomment the Libraries you need
+ #
+ SET ( ${LIBRARY_NAME}_LINK_LIBRARIES
+ ${crea_LIBRARIES}
+ ${WXWIDGETS_LIBRARIES}
+ # ${KWWidgets_LIBRARIES}
+ # ${VTK_LIBRARIES}
+ # ${ITK_LIBRARIES}
+ # ${GDCM_LIBRARIES}
+ # ${BOOST_LIBRARIES}
+
+ # If this library must link against other libraries
+ # USER! : Add here any extra Library you need
+
+ )
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
+
+ # USER! : The default is to create a Dynamic Library.
+ # if you need to create a static library
+ # comment out the following line :
+
+ CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
+
+ # and uncomment the 2 lines hereafter:
+
+ # ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES})
+ # TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} )
+
+ #
+ #----------------------------------------------------------------------------
+
+ #---------------------------------------------------------------------------
+ENDIF ( BUILD_${LIBRARY_NAME} )
--- /dev/null
+
+#ifndef _$PROJECT_NAME$SYSTEM_H_
+#define _$PROJECT_NAME$SYSTEM_H_
+
+
+// Windoze related troubles (as usual)
+
+//-----------------------------------------------------------------------------
+
+#if defined(_WIN32)
+ #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS
+ #define $PROJECT_NAME$_EXPORT __declspec( dllexport )
+#else
+ #define $PROJECT_NAME$_EXPORT __declspec( dllimport )
+ #endif
+ #define $PROJECT_NAME$_CDECL __cdecl
+#else
+ #define $PROJECT_NAME$_EXPORT
+ #define $PROJECT_NAME$_CDECL
+#endif // defined(_WIN32)
+
+#ifdef __BORLANDC__
+ #include <mem.h>
+#endif
+
+#endif
--- /dev/null
+
+#ifndef _$PROJECT_NAME$SYSTEM_H_
+#define _$PROJECT_NAME$SYSTEM_H_
+
+
+// Windoze related troubles (as usual)
+
+//-----------------------------------------------------------------------------
+
+#if defined(_WIN32)
+ #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS
+ #define $PROJECT_NAME$_EXPORT __declspec( dllexport )
+#else
+ #define $PROJECT_NAME$_EXPORT __declspec( dllimport )
+ #endif
+ #define $PROJECT_NAME$_CDECL __cdecl
+#else
+ #define $PROJECT_NAME$_EXPORT
+ #define $PROJECT_NAME$_CDECL
+#endif // defined(_WIN32)
+
+#ifdef __BORLANDC__
+ #include <mem.h>
+#endif
+
+#endif
--- /dev/null
+#include <creaWx.h>
+#include "wxCreaDevManagerMainFrame.h"
+
+wxCreaDevManagerMainFrame::wxCreaDevManagerMainFrame(
+ wxWindow* parent,
+ wxWindowID id,
+ const wxString& caption,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style
+)
+{
+ Create(parent, id, caption, pos, size, style);
+}
+
+wxCreaDevManagerMainFrame::~wxCreaDevManagerMainFrame()
+{
+}
+
+bool wxCreaDevManagerMainFrame::Create(
+ wxWindow* parent,
+ wxWindowID id,
+ const wxString& caption,
+ const wxPoint& pos,
+ const wxSize& size,
+ long style
+)
+{
+ wxFrame::Create(parent, id, caption, pos, size, style);
+ return true;
+}
+
--- /dev/null
+#ifndef WXCREADEVMANAGERMAINFRAME_H_INCLUDED
+#define WXCREADEVMANAGERMAINFRAME_H_INCLUDED
+
+class wxCreaDevManagerMainFrame:public wxFrame
+{
+ public:
+ wxCreaDevManagerMainFrame(
+ wxWindow* parent,
+ wxWindowID id = -1,
+ const wxString& caption = _("CREATIS CreaDevManager"),
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE
+ );
+
+ ~wxCreaDevManagerMainFrame();
+
+ bool Create(
+ wxWindow* parent,
+ wxWindowID id = -1,
+ const wxString& caption = _("CREATIS CreaDevManager"),
+ const wxPoint& pos = wxDefaultPosition,
+ const wxSize& size = wxDefaultSize,
+ long style = wxDEFAULT_FRAME_STYLE
+ );
+};
+
+#endif
--- /dev/null
+#----------------------------------------------------------------------------
+# USER! : SET THE NAME OF YOUR LIBRARY
+# (Replace 'MyLib' by your own library name)
+
+#############################
+SET ( LIBRARY_NAME MyLib )
+#############################
+
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+# CREATES A USER OPTION IN CMAKE
+OPTION ( BUILD_${LIBRARY_NAME} "Build ${LIBRARY_NAME} library ?" ON)
+#----------------------------------------------------------------------------
+
+#----------------------------------------------------------------------------
+IF ( BUILD_${LIBRARY_NAME} )
+#----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # BUILD LIBRARY
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # LIBRARY HEADERS (TO BE INSTALLED)
+ # EITHER LIST ALL .h, *.txx IN CURRENT DIR USING NEXT LINE:
+
+ FILE(GLOB ${LIBRARY_NAME}_HEADERS "*.h" "*.txx")
+
+ # OR MANUALLY LIST YOUR HEADERS WITH NEXT COMMAND
+ # SET ( ${LIBRARY_NAME}_HEADERS
+ #
+ # )
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # LIBRARY SOURCES (TO BE COMPILED)
+ # EITHER LIST ALL .cxx, *.cpp, *.cc IN CURRENT DIR USING NEXT LINE:
+
+ FILE(GLOB ${LIBRARY_NAME}_SOURCES *.cxx *.cpp *.cc)
+
+ # OR MANUALLY LIST YOUR FILES WITH NEXT COMMAND (WITHOUT EXTENSION)
+ # SET ( ${LIBRARY_NAME}_SOURCES
+ #
+ # )
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # LIBRARY DEPENDENCIES (LIBRARIES TO LINK WITH)
+ #
+ # USER! : Uncomment the Libraries you need
+ #
+ SET ( ${LIBRARY_NAME}_LINK_LIBRARIES
+ # ${crea_LIBRARIES}
+ # ${WXWIDGETS_LIBRARIES}
+ # ${KWWidgets_LIBRARIES}
+ # ${VTK_LIBRARIES}
+ # ${ITK_LIBRARIES}
+ # ${GDCM_LIBRARIES}
+ # ${BOOST_LIBRARIES}
+
+ # If this library must link against other libraries
+ # USER! : Add here any extra Library you need
+
+ )
+ #----------------------------------------------------------------------------
+
+ #----------------------------------------------------------------------------
+ # MACRO WHICH DOES ALL THE JOB : BUILD AND INSTALL
+
+ # USER! : The default is to create a Dynamic Library.
+ # if you need to create a static library
+ # comment out the following line :
+
+ CREA_ADD_LIBRARY( ${LIBRARY_NAME} )
+
+ # and uncomment the 2 lines hereafter:
+
+ # ADD_LIBRARY(${LIBRARY_NAME} STATIC ${${LIBRARY_NAME}_SOURCES})
+ # TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${${LIBRARY_NAME}_LINK_LIBRARIES} )
+
+ #
+ #----------------------------------------------------------------------------
+
+ #---------------------------------------------------------------------------
+ENDIF ( BUILD_${LIBRARY_NAME} )
--- /dev/null
+
+#ifndef _$PROJECT_NAME$SYSTEM_H_
+#define _$PROJECT_NAME$SYSTEM_H_
+
+
+// Windoze related troubles (as usual)
+
+//-----------------------------------------------------------------------------
+
+#if defined(_WIN32)
+ #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS
+ #define $PROJECT_NAME$_EXPORT __declspec( dllexport )
+#else
+ #define $PROJECT_NAME$_EXPORT __declspec( dllimport )
+ #endif
+ #define $PROJECT_NAME$_CDECL __cdecl
+#else
+ #define $PROJECT_NAME$_EXPORT
+ #define $PROJECT_NAME$_CDECL
+#endif // defined(_WIN32)
+
+#ifdef __BORLANDC__
+ #include <mem.h>
+#endif
+
+#endif
--- /dev/null
+
+#ifndef _$PROJECT_NAME$SYSTEM_H_
+#define _$PROJECT_NAME$SYSTEM_H_
+
+
+// Windoze related troubles (as usual)
+
+//-----------------------------------------------------------------------------
+
+#if defined(_WIN32)
+ #ifdef $PROJECT_NAME$_EXPORT_SYMBOLS
+ #define $PROJECT_NAME$_EXPORT __declspec( dllexport )
+#else
+ #define $PROJECT_NAME$_EXPORT __declspec( dllimport )
+ #endif
+ #define $PROJECT_NAME$_CDECL __cdecl
+#else
+ #define $PROJECT_NAME$_EXPORT
+ #define $PROJECT_NAME$_CDECL
+#endif // defined(_WIN32)
+
+#ifdef __BORLANDC__
+ #include <mem.h>
+#endif
+
+#endif