2018-10-29 18:29:04 +03:00
|
|
|
# Use static runtime for all subdirectories
|
|
|
|
foreach(buildType "" "_DEBUG" "_MINSIZEREL" "_RELEASE" "_RELWITHDEBINFO")
|
|
|
|
string(REPLACE "/MD" "/MT" "CMAKE_CXX_FLAGS${buildType}" "${CMAKE_CXX_FLAGS${buildType}}")
|
|
|
|
endforeach()
|
|
|
|
|
2020-08-18 19:12:29 +03:00
|
|
|
include_directories(
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
)
|
|
|
|
configure_file(WinShellExtConstants.h.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExtConstants.h)
|
|
|
|
|
2020-08-18 20:11:08 +03:00
|
|
|
add_subdirectory(NCContextMenu)
|
|
|
|
add_subdirectory(NCOverlays)
|
|
|
|
add_subdirectory(NCUtil)
|
2018-01-04 22:51:12 +03:00
|
|
|
|
2020-09-05 05:39:05 +03:00
|
|
|
if(BUILD_WIN_MSI)
|
|
|
|
configure_file(WinShellExt.wxs.in ${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs)
|
|
|
|
|
|
|
|
install(FILES
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/WinShellExt.wxs
|
|
|
|
DESTINATION msi/
|
|
|
|
)
|
|
|
|
endif()
|