#-Dependencies---------------------------------------------------------------
# DEPENDENCIES (LIBRARIES TO LINK WITH)
+
+
SET ( ${EXE_NAME}_LINK_LIBRARIES
${crea_LIBRARIES}
${WXWIDGETS_LIBRARIES}
command2 += "\"" + crea::wx2std(dir)+"\\"+crea::wx2std(name)+"\\CMakeLists.txt.in\"";
if ( ! system ( command.c_str() ) )
{
- system ( command1.c_str() );
+ system ( command1.c_str() );
system ( command2.c_str() );
// Create a Package at the same time. JPR
- char *author = (char*) (authorWX.mb_str()) ;
+
+ //2018-07-06 mingw64
+// char *author = (char*) (authorWX.mb_str()) ;
+ char *author = authorWX.mb_str() ;
+
std::string nomDirectory = crea::wx2std(dir) + "\\" + crea::wx2std(name);
std::string nomPackageDirectory = nomDirectory + "\\" + "bbtk_" + crea::wx2std(name) + "_PKG";
std::string bbCreatePackage("bbCreatePackage ");
vtkFiltersSources
vtkInfovisLayout
vtkIOVideo
- vtkRenderingQt
vtkDICOMParser
vtkFiltersStatistics
vtkInteractionImage
vtkNetCDF
vtkViewsContext2D
vtkFiltersExtraction
- vtkGUISupportQt
vtkIOExport
- vtkNetCDF_cxx
vtkViewsCore
vtkFiltersFlowPaths
- vtkGUISupportQtSQL
vtkIOGeometry
vtkoggtheora
vtkViewsGeovis
vtkhdf5_hl
vtkIOImport
vtkpng
- vtkViewsQt
vtkFiltersGeometry
vtkImagingColor
vtkIOInfovis
vtkRenderingGL2PSOpenGL2
vtkRenderingContextOpenGL2
+# vtkRenderingQt
+# vtkGUISupportQt
+# vtkGUISupportQtSQL
+# vtkViewsQt
+# vtkNetCDF_cxx
)
+ IF (WIN32)
+ SET(VTK_LIBRARIES ${VTK_LIBRARIES} )
+ ELSE(WIN32)
+ SET(VTK_LIBRARIES ${VTK_LIBRARIES}
+ vtkRenderingQt
+ vtkGUISupportQt
+ vtkGUISupportQtSQL
+ vtkViewsQt
+ vtkNetCDF_cxx
+ )
+ ENDIF(WIN32)
+
+
ENDIF("${VTK_MAJOR_VERSION}" GREATER 5)
# INCLUDE (${CREA_CMAKE_DIR}/FindWxWidgetsWin32.cmake)
# #
- find_package(wxwidgets REQUIRED COMPONENTS core base)
+# find_package(wxwidgets REQUIRED COMPONENTS base core advanced adv html xml aui)
+ find_package(wxwidgets REQUIRED )
ELSE(WIN32)
# )
include(${wxWidgets_USE_FILE})
-
-
-
+
+ SET(WXWIDGETS_LIBRARIES ${wxWidgets_LIBRARIES}
+ "${wxWidgets_LIB_DIR}/libwxmsw31u_aui.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw31u_webview.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw31u_html.a"
+ "${wxWidgets_LIB_DIR}/libwxmsw31u_adv.a" )
ELSE(WIN32)
## # GTK2
## INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
// (cout's to the console are visible) and has a wxWidgets GUI,
// you need to use the linker option "/subsystem:console" and the following code:
+//2018-07-06 mingw64 \
+// return WinMain(::GetModuleHandle(NULL), NULL, ::GetCommandLine() , SW_SHOWNORMAL); \
+
#define CREA_WXMAIN_WITH_CONSOLE \
int main(int argc, char* argv[]) \
{ \
- return WinMain(::GetModuleHandle(NULL), NULL, \
- ::GetCommandLine(), SW_SHOWNORMAL); \
+ char getcommandline2[512]; \
+ wcstombs(getcommandline2 , ::GetCommandLine() , 512); \
+ return WinMain(::GetModuleHandle(NULL), NULL, getcommandline2, SW_SHOWNORMAL); \
}
#else // defined(_WIN32)