message("EED CREAMacro_FindAndUseWxWidgets APPLE. forsing wxWidgets_CONFIG_EXECUTABLE. wxWidgets_wxrc_EXECUTABLE ")
SET(wxWidgets_CONFIG_EXECUTABLE /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wx-config CACHE STRING wxWidgets_CONFIG_EXECUTABLE FORCE)
SET(wxWidgets_wxrc_EXECUTABLE /opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/bin/wxrc-3.0 CACHE STRING wxWidgets_wxrc_EXECUTABLE FORCE)
- elseif(APPLE)
+ elseif(UNIX)
message("EED CREAMacro_FindAndUseWxWidgets UNIX")
#MESSAGE ( "===============Manual wx-config 2 EED =======================")
#SET(wxWidgets_CONFIG_EXECUTABLE /usr/bin/wx-config-2.0 CACHE STRING wxWidgets_CONFIG_EXECUTABLE FORCE)
# Preprocessor settings
CREA_DEFINE( USE_WXWIDGETS )
CREA_DEFINE( _USE_WXWIDGETS_ )
-
+
#
IF(WIN32)
# # Clean ?
"${wxWidgets_LIB_DIR}/libwxmsw30u_html.a"
"${wxWidgets_LIB_DIR}/libwxmsw30u_adv.a" )
ELSE(WIN32)
-
-
IF(APPLE)
INCLUDE( ${wxWidgets_USE_FILE} )
MARK_AS_ADVANCED(wxWidgets_CONFIG_EXECUTABLE)
SET(WXWIDGETS_LIBRARIES
${wxWidgets_LIBRARIES}
)
-
-message("EED WXWIDGETS_LIBRARIES: " ${WXWIDGETS_LIBRARIES} )
-
- ELSEIF(APPLE)
+ ELSEIF(UNIX)
## # GTK2
## INCLUDE_DIRECTORIES(${GTK2_INCLUDE_DIRS})
## LINK_DIRECTORIES(${GTK2_LIBRARY_DIRS})
INCLUDE_DIRECTORIES(${GTK3_INCLUDE_DIRS})
LINK_DIRECTORIES(${GTK3_LIBRARY_DIRS})
LINK_LIBRARIES(${GTK3_LIBRARIES} )
- message("EED GTK3_VERSION "${GTK3_VERSION})
+ message("EED GTK3_VERSION "${GTK3_VERSION})
+ message("EED GTK3_INCLUDE_DIRS "${GTK3_INCLUDE_DIRS})
+ message("EED GTK3_LIBRARY_DIRS "${GTK3_LIBRARY_DIRS})
+ message("EED GTK3_LIBRARIES "${GTK3_LIBRARIES})
# WX
# INCLUDE( ${GTK_USE_FILE} )
INCLUDE( ${wxWidgets_USE_FILE} )
MARK_AS_ADVANCED(wxWidgets_CONFIG_EXECUTABLE)
- SET(WXWIDGETS_LIBRARIES ${GTK3_LIBRARIES} )
-## SET(WXWIDGETS_LIBRARIES ${GTK3_LIBRARIES} #${GTK_LIBRARIES} )
- ENDIF(APPLE)
+ SET(WXWIDGETS_LIBRARIES
+ ${GTK3_LIBRARIES}
+ ${wxWidgets_LIBRARIES}
+ )
+
+
+ ENDIF(APPLE)
ENDIF(WIN32)
ENDMACRO(CREA_USE_WXWIDGETS)
#=======================================================================
)
#-----------------------------------------------------------------------------
+IF(APPLE)
+ set (creawxVTKRenderWindowInteractorSRC creawxVTKRenderWindowInteractor.mm)
+ELSEIF(UNIX OR WIN32)
+ set (creawxVTKRenderWindowInteractorSRC creawxVTKRenderWindowInteractor.cxx)
+ENDIF(APPLE)
+
SET( SRCS
creaSystem
creaMessageManager
creaRTTI
- creawxVTKRenderWindowInteractor
+ ${creawxVTKRenderWindowInteractorSRC}
creaVtkBasicSlicer
creaVtk
creaFilesFromDirectory