summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog/CMakeLists.txt
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 13:47:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-09-19 13:47:18 (GMT)
commitf1d40eef93220d502fca94667a64188f7f9fe094 (patch)
tree6c480cc04fce7b1706ba87c848eb129ae5288e14 /Source/WXDialog/CMakeLists.txt
parent0dafd886fc719b5fbb0d56f30262ba09c76a160b (diff)
downloadCMake-f1d40eef93220d502fca94667a64188f7f9fe094.zip
CMake-f1d40eef93220d502fca94667a64188f7f9fe094.tar.gz
CMake-f1d40eef93220d502fca94667a64188f7f9fe094.tar.bz2
Initial import of wxWindows dialog
Diffstat (limited to 'Source/WXDialog/CMakeLists.txt')
-rw-r--r--Source/WXDialog/CMakeLists.txt33
1 files changed, 33 insertions, 0 deletions
diff --git a/Source/WXDialog/CMakeLists.txt b/Source/WXDialog/CMakeLists.txt
new file mode 100644
index 0000000..779411c
--- /dev/null
+++ b/Source/WXDialog/CMakeLists.txt
@@ -0,0 +1,33 @@
+INCLUDE (${CMAKE_ROOT}/Modules/FindwxWindows.cmake)
+
+IF ( CMAKE_WX_CAN_COMPILE )
+
+ SET( WX_SRCS
+ cmWXCacheProperty.cxx
+ cmWXCommandLineInfo.cxx
+ cmWXMainFrame.cxx
+ wxCMakeSetup.cxx
+ )
+
+ IF(WXWINDOWS_INCLUDE_PATH)
+ INCLUDE_DIRECTORIES(${WXWINDOWS_INCLUDE_PATH})
+ ENDIF(WXWINDOWS_INCLUDE_PATH)
+
+ IF(CMAKE_WX_CXX_FLAGS)
+ SET(CMAKE_CXX_FLAGS "${CMAKE_WX_CXX_FLAGS} ${CMAKE_CXX_FLAGS}")
+ ENDIF(CMAKE_WX_CXX_FLAGS)
+
+ INCLUDE_DIRECTORIES(${CMake_SOURCE_DIR}/Source)
+
+ ADD_EXECUTABLE(wxCMakeSetup ${WX_SRCS})
+ TARGET_LINK_LIBRARIES(wxCMakeSetup ${WXWINDOWS_LIBRARY})
+ TARGET_LINK_LIBRARIES(wxCMakeSetup CMakeLib)
+
+ INSTALL_TARGETS(/bin wxCMakeSetup)
+
+ELSE ( CMAKE_WX_CAN_COMPILE )
+
+ MESSAGE("Cannot find wxWindows libraries and/or header files")
+ MESSAGE("OLib: ${WXWINDOWS_LIBRARY} Inc: ${WXWINDOWS_INCLUDE_PATH} Flags: ${CMAKE_WX_CXX_FLAGS}")
+
+ENDIF ( CMAKE_WX_CAN_COMPILE )