modified CMakeLists.txt
This commit is contained in:
parent
50df13a0d3
commit
b40903fbc9
|
|
@ -2,4 +2,5 @@ cmake_minimum_required(VERSION 3.5)
|
||||||
|
|
||||||
project(PowerDesigner LANGUAGES CXX VERSION 1.0)
|
project(PowerDesigner LANGUAGES CXX VERSION 1.0)
|
||||||
|
|
||||||
|
set(ADS_VERSION 4.3.1)
|
||||||
add_subdirectory(QtADS)
|
add_subdirectory(QtADS)
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,6 @@ else()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(ADS_VERSION 4.3.1)
|
|
||||||
set(VERSION_SHORT 4.3.1)
|
|
||||||
|
|
||||||
project(QtADS LANGUAGES CXX VERSION ${VERSION_SHORT})
|
project(QtADS LANGUAGES CXX VERSION ${VERSION_SHORT})
|
||||||
|
|
||||||
option(BUILD_STATIC "Build the static library" OFF)
|
option(BUILD_STATIC "Build the static library" OFF)
|
||||||
|
|
@ -37,7 +34,17 @@ option(BUILD_EXAMPLES "Build the examples" ON)
|
||||||
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
|
if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "4")
|
||||||
set(ads_PlatformDir "x86")
|
set(ads_PlatformDir "x86")
|
||||||
else()
|
else()
|
||||||
set(ads_PlatformDir "x64")
|
if(DEFINED CMAKE_SYSTEM_PROCESSOR)
|
||||||
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64")
|
||||||
|
set(ads_PlatformDir "x64")
|
||||||
|
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64")
|
||||||
|
set(ads_PlatformDir "aarch64")
|
||||||
|
else()
|
||||||
|
set(ads_PlatformDir "x64")
|
||||||
|
endif()
|
||||||
|
else()
|
||||||
|
set(ads_PlatformDir "x64")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue