CMake update to install EXEs (#122)
This commit is contained in:
Родитель
468bb1cca8
Коммит
631d41dccb
|
@ -31,9 +31,9 @@ set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/CMake")
|
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
||||||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/CMake")
|
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/CMake")
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
||||||
|
|
||||||
if(DEFINED VCPKG_TARGET_ARCHITECTURE)
|
if(DEFINED VCPKG_TARGET_ARCHITECTURE)
|
||||||
set(DIRECTX_ARCH ${VCPKG_TARGET_ARCHITECTURE})
|
set(DIRECTX_ARCH ${VCPKG_TARGET_ARCHITECTURE})
|
||||||
|
@ -415,6 +415,12 @@ if(BUILD_TOOLS AND WIN32)
|
||||||
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT meshconvert)
|
set_property(DIRECTORY PROPERTY VS_STARTUP_PROJECT meshconvert)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(BUILD_TOOLS AND WIN32 AND (NOT VCPKG_TOOLCHAIN))
|
||||||
|
foreach(t IN LISTS TOOL_EXES)
|
||||||
|
install(TARGETS ${t} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|
||||||
|
endforeach()
|
||||||
|
endif()
|
||||||
|
|
||||||
#--- Test suite
|
#--- Test suite
|
||||||
include(CTest)
|
include(CTest)
|
||||||
if(BUILD_TESTING AND WIN32 AND (NOT WINDOWS_STORE) AND (NOT (DEFINED XBOX_CONSOLE_TARGET))
|
if(BUILD_TESTING AND WIN32 AND (NOT WINDOWS_STORE) AND (NOT (DEFINED XBOX_CONSOLE_TARGET))
|
||||||
|
|
Загрузка…
Ссылка в новой задаче