CMakeLists.txt 674 B

12345678910111213141516171819202122
  1. # Use static runtime for all subdirectories
  2. foreach(buildType "" "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
  3. string(REPLACE "/MD" "/MT" "CMAKE_CXX_FLAGS${buildType}" "${CMAKE_CXX_FLAGS${buildType}}")
  4. endforeach()
  5. include_directories(
  6. ${CMAKE_CURRENT_BINARY_DIR}
  7. )
  8. configure_file(WinShellExtConstants.h.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExtConstants.h)
  9. add_subdirectory(NCContextMenu)
  10. add_subdirectory(NCOverlays)
  11. add_subdirectory(NCUtil)
  12. if(BUILD_WIN_MSI)
  13. configure_file(WinShellExt.wxs.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs)
  14. install(FILES
  15. ${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs
  16. DESTINATION msi/
  17. )
  18. endif()