mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-07-11 01:34:17 +02:00
cmake: Use imported targets
This commit is contained in:
committed by
tellowkrinkle
parent
e788dd352c
commit
4213b4a409
+4
-8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user