CREA_PREVENT_IN_SOURCE_BUILD()
SET(USE_VTK ON)
-SET(USE_BOOST ON)
+#SET(USE_BOOST ON)
SET(USE_WXWIDGETS ON)
CREA_FIND_AND_USE_LIBRARIES()
+#Generates the cmake commands to build and install the executable EXE_NAME.
+# ${EXE_NAME}_SOURCES must contain the list of files to compile
+# to build the executable.
+# ${EXE_NAME}_LINK_LIBRARIES must contain the list of libraries to link with
+#
+# On Windows, if ${EXE_NAME}_CONSOLE is set to TRUE
+# then the application will have a console attached.
MACRO(CREA_ADD_WX_EXECUTABLE EXE_NAME)
# INSTALLS LIBRARY
FILE(GLOB crea_HEADERS "*.h")
INSTALL(
- FILES ${HEADERS} ${CMAKE_CURRENT_BINARY_DIR}/creaConfigure.h
+ FILES ${crea_HEADERS}
DESTINATION include/crea
)
+INSTALL(
+ FILES ${CMAKE_CURRENT_BINARY_DIR}/creaConfigure.h
+ DESTINATION include/crea
+ )
+
INSTALL(
TARGETS crea
DESTINATION lib)
#if defined(_WIN32)
+
// How to have a Console and wxWidgets
// http://www.wxwidgets.org/wiki/index.php/MSVC_Setup_Guide
// In Visual C++ 6 (7 should be similar), to create an application that is both a console application
return WinMain(::GetModuleHandle(NULL), NULL, \
::GetCommandLine(), SW_SHOWNORMAL); \
}
+
#else // defined(_WIN32)
+
#define CREA_WXMAIN_WITH_CONSOLE
+
#endif // defined(_WIN32)