mirror of
https://github.com/avast/retdec.git
synced 2024-11-27 14:50:48 +00:00
e24b7b86d9
Use it directly where needed.
26 lines
831 B
CMake
26 lines
831 B
CMake
|
|
include(ExternalProject)
|
|
|
|
include(ProcessorCount)
|
|
ProcessorCount(CPUS)
|
|
|
|
if(CMAKE_C_COMPILER)
|
|
set(CMAKE_C_COMPILER_OPTION "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}")
|
|
endif()
|
|
if(CMAKE_CXX_COMPILER)
|
|
set(CMAKE_CXX_COMPILER_OPTION "-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}")
|
|
endif()
|
|
|
|
set(MSVC_GE $<BOOL:${MSVC}>)
|
|
set(MSVC_CONFIG $<${MSVC_GE}:$<CONFIG>/>)
|
|
|
|
cond_add_subdirectory(capstone RETDEC_ENABLE_CAPSTONE)
|
|
cond_add_subdirectory(elfio RETDEC_ENABLE_ELFIO)
|
|
cond_add_subdirectory(googletest RETDEC_ENABLE_GOOGLETEST)
|
|
cond_add_subdirectory(keystone RETDEC_ENABLE_KEYSTONE)
|
|
cond_add_subdirectory(llvm RETDEC_ENABLE_LLVM)
|
|
cond_add_subdirectory(rapidjson RETDEC_ENABLE_RAPIDJSON)
|
|
cond_add_subdirectory(tinyxml2 RETDEC_ENABLE_TINYXML2)
|
|
cond_add_subdirectory(yara RETDEC_ENABLE_YARA)
|
|
cond_add_subdirectory(yaramod RETDEC_ENABLE_YARAMOD)
|