cmake: Use imported targets

This commit is contained in:
TellowKrinkle
2021-04-17 15:30:03 -05:00
committed by tellowkrinkle
parent e788dd352c
commit 4213b4a409
16 changed files with 143 additions and 332 deletions
+4 -8
View File
@@ -7,7 +7,7 @@ project(Pcsx2)
#
# Setting it to a range tells it that it supports the features on the newer
# versions as well, avoiding setting policies.
cmake_minimum_required(VERSION 3.3.0...3.17)
cmake_minimum_required(VERSION 3.10...3.17)
# Variable to check that people use the good file
set(TOP_CMAKE_WAS_SOURCED TRUE)
@@ -42,15 +42,11 @@ if(NOT NO_TRANSLATION)
endif()
# make common
if(common_libs)
add_subdirectory(common/src/Utilities)
add_subdirectory(common/src/x86emitter)
endif()
add_subdirectory(common/src/Utilities)
add_subdirectory(common/src/x86emitter)
# make pcsx2
if(EXISTS "${CMAKE_SOURCE_DIR}/pcsx2" AND pcsx2_core)
add_subdirectory(pcsx2)
endif()
add_subdirectory(pcsx2)
# tests
if(ACTUALLY_ENABLE_TESTS)