Set Visual Studio startup projects

This commit is contained in:
SChernykh 2021-09-06 00:39:19 +02:00
parent 2ecd935bc5
commit e3c32caadb
2 changed files with 8 additions and 0 deletions

View file

@ -5,6 +5,10 @@ option(STATIC_LINUX_BINARY "Build static Linux binary" OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.6.0")
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool)
endif()
add_subdirectory(external/src/RandomX)
set(LIBS randomx)

View file

@ -8,6 +8,10 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.6.0")
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT p2pool_tests)
endif()
add_subdirectory(googletest)
set(LIBS gtest)