CMakeLists.txt 543 B

12345678910111213141516171819202122232425
  1. SET( SRCS
  2. CMakeSetup.cpp
  3. MakeHelp.cpp
  4. CMakeSetup.rc
  5. CMakeSetupDialog.cpp
  6. PathDialog.cpp
  7. PropertyList.cpp
  8. StdAfx.cpp
  9. CMakeCommandLineInfo.cpp
  10. )
  11. # add stuff to use MFC in this executable
  12. ADD_DEFINITIONS(-D_AFXDLL)
  13. # Use of CMAKE_MFC_FLAG
  14. # Values:
  15. # 0: Use Standard Windows Libraries
  16. # 1: Use MFC in a Static Library
  17. # 2: Use MFC in a Shared DLL
  18. SET(CMAKE_MFC_FLAG 2)
  19. ADD_EXECUTABLE(CMakeSetup WIN32 ${SRCS})
  20. TARGET_LINK_LIBRARIES(CMakeSetup CMakeLib)
  21. ADD_DEPENDENCIES(CMakeSetup cmake)
  22. INSTALL_TARGETS(/bin CMakeSetup)