1 ##---------------------------------------------------------------------------
2 ## $RCSfile: CMakeLists.txt,v $
3 ## $Source: /cvsroot/CMake/CMake/Source/WXDialog/Attic/CMakeLists.txt,v $
5 ## $Date: 2007-11-05 19:47:20 $
6 ##---------------------------------------------------------------------------
7 ## Author: Jorgen Bodde
8 ## Copyright: (c) Jorgen Bodde
9 ## License: wxWidgets License
10 ##---------------------------------------------------------------------------
12 # wxWindows -> wxWidgets Jan Woetzel 07/2006
13 # tested with wx 2.6.3 with "multilib" build on Windows XP
16 SET(CMAKE_VERBOSE_MAKEFILE TRUE)
18 # suppress wx header warnings?
21 # in addition to wx std libs we need
22 SET( wxWidgets_USE_LIBS
25 FIND_PACKAGE(wxWidgets REQUIRED)
26 #INCLUDE(${CMAKE_ROOT}/Modules/FindwxWidgets.cmake)
28 # Start using wx stuff when it is fully found and set
30 INCLUDE( ${wxWidgets_USE_FILE} )
51 # include .rc when windows
53 SET ( CMAKE_SRCS ${CMAKE_SRCS} CMakeSetup.rc )
56 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/Source/WXDialog
57 ${wxWidgets_INCLUDE_DIR} )
58 LINK_DIRECTORIES( ${wxWidgets_LINK_DIRECTORIES}
59 ${CMake_BINARY_DIR}/Source
60 ${CMake_BINARY_DIR}/Source/kwsys )
63 ADD_EXECUTABLE(WXDialog MACOSX_BUNDLE ${CMAKE_SRCS})
65 ADD_EXECUTABLE(WXDialog WIN32 ${CMAKE_SRCS})
67 INSTALL_TARGETS(/bin WXDialog)
69 # not required on MSVS beause bound to _DEBUG,
70 # but other compiler may need it.
71 # However, the define prevents multiple build configurations
73 # e.g. MSVS supports Debug;Release
74 # TODO: shall we add the define or not -
75 # favor multi config or all compilers? (JW)
76 SET(CMAKE_CXX_FLAGS_DEBUG
77 "${CMAKE_CXX_FLAGS_DEBUG} -D__WXDEBUG__ -DWXDEBUG=1")
80 ADD_DEFINITIONS( -DLINUX=1 )
83 # if the checkbox view functionality is not desired,
84 # exclude this part from the smple
85 TARGET_LINK_LIBRARIES(WXDialog ${wxWidgets_LIBRARIES} cmsys CMakeLib)
86 INSTALL_TARGETS(/bin WXDialog)
87 ENDIF(wxWidgets_FOUND)