2002-04-22 19:49:40 +04:00
|
|
|
SET( SRCS
|
2005-03-28 22:23:07 +04:00
|
|
|
CMakeSetup.h
|
2004-01-27 20:37:30 +03:00
|
|
|
CMakeSetup.cpp
|
2005-03-28 22:23:07 +04:00
|
|
|
MakeHelp.h
|
2004-01-27 20:37:30 +03:00
|
|
|
MakeHelp.cpp
|
2005-03-28 22:23:07 +04:00
|
|
|
CMakeGenDialog.h
|
|
|
|
CMakeGenDialog.cpp
|
2004-01-27 20:37:30 +03:00
|
|
|
CMakeSetup.rc
|
2005-03-28 22:23:07 +04:00
|
|
|
CMakeSetupDialog.h
|
2004-01-27 20:37:30 +03:00
|
|
|
CMakeSetupDialog.cpp
|
2005-03-28 22:23:07 +04:00
|
|
|
PathDialog.h
|
2004-01-27 20:37:30 +03:00
|
|
|
PathDialog.cpp
|
|
|
|
PropertyList.cpp
|
2005-03-28 22:23:07 +04:00
|
|
|
StdAfx.h
|
2004-01-27 20:37:30 +03:00
|
|
|
StdAfx.cpp
|
2005-03-28 22:23:07 +04:00
|
|
|
resource.h
|
2004-01-27 20:37:30 +03:00
|
|
|
CMakeCommandLineInfo.cpp
|
2001-06-21 01:03:54 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
# add stuff to use MFC in this executable
|
|
|
|
ADD_DEFINITIONS(-D_AFXDLL)
|
2004-04-28 21:40:58 +04:00
|
|
|
|
|
|
|
# Use of CMAKE_MFC_FLAG
|
|
|
|
# Values:
|
|
|
|
# 0: Use Standard Windows Libraries
|
|
|
|
# 1: Use MFC in a Static Library
|
|
|
|
# 2: Use MFC in a Shared DLL
|
|
|
|
SET(CMAKE_MFC_FLAG 2)
|
2001-06-21 01:03:54 +04:00
|
|
|
|
2002-04-22 19:49:40 +04:00
|
|
|
ADD_EXECUTABLE(CMakeSetup WIN32 ${SRCS})
|
2002-08-21 20:02:32 +04:00
|
|
|
TARGET_LINK_LIBRARIES(CMakeSetup CMakeLib)
|
2001-06-26 21:23:55 +04:00
|
|
|
ADD_DEPENDENCIES(CMakeSetup cmake)
|
2007-09-11 23:21:37 +04:00
|
|
|
|
|
|
|
IF(MSVC AND NOT MSVC60 AND NOT MSVC70 AND NOT MSVC71)
|
|
|
|
SET(exe "${CMAKE_CFG_INTDIR}/CMakeSetup.exe")
|
|
|
|
IF(EXECUTABLE_OUTPUT_PATH)
|
|
|
|
SET(exe "${EXECUTABLE_OUTPUT_PATH}/${CMAKE_CFG_INTDIR}/CMakeSetup.exe")
|
|
|
|
ENDIF(EXECUTABLE_OUTPUT_PATH)
|
|
|
|
|
|
|
|
# Solve the "things named like *Setup prompt for admin privileges
|
|
|
|
# on Vista" problem by merging a manifest fragment that contains a
|
|
|
|
# requestedExecutionLevel element:
|
|
|
|
#
|
|
|
|
ADD_CUSTOM_COMMAND(TARGET CMakeSetup
|
|
|
|
POST_BUILD COMMAND mt
|
|
|
|
"-inputresource:${exe};#1"
|
|
|
|
-manifest "${CMAKE_CURRENT_SOURCE_DIR}/CMakeSetupManifest.xml"
|
|
|
|
"-outputresource:${exe};#1"
|
2007-09-18 00:10:08 +04:00
|
|
|
VERBATIM
|
2007-09-11 23:21:37 +04:00
|
|
|
)
|
|
|
|
ENDIF(MSVC AND NOT MSVC60 AND NOT MSVC70 AND NOT MSVC71)
|
|
|
|
|
2004-01-27 20:37:30 +03:00
|
|
|
INSTALL_TARGETS(/bin CMakeSetup)
|