46 lines
1.6 KiB
CMake
46 lines
1.6 KiB
CMake
if (NOT ddl_cmake_integrated_tests)
|
|
project(ddl_tests)
|
|
# if Conan is used, we have to include the generated file and doing some basic setup
|
|
if(CONAN_COMPILER)
|
|
if ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo.cmake)
|
|
include(${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo.cmake)
|
|
elseif ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/../conanbuildinfo.cmake)
|
|
include(${CMAKE_CURRENT_BINARY_DIR}/../conanbuildinfo.cmake)
|
|
elseif ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo_multi.cmake)
|
|
include(${CMAKE_CURRENT_BINARY_DIR}/conanbuildinfo_multi.cmake)
|
|
elseif ( EXISTS ${CMAKE_CURRENT_BINARY_DIR}/../conanbuildinfo_multi.cmake)
|
|
include(${CMAKE_CURRENT_BINARY_DIR}/../conanbuildinfo_multi.cmake)
|
|
else()
|
|
message(FATAL_ERROR "Conan build info can't be found.")
|
|
endif()
|
|
|
|
if(CORTEX_WORKSPACE)
|
|
conan_basic_setup(TARGETS)
|
|
else()
|
|
conan_basic_setup(TARGETS NO_OUTPUT_DIRS)
|
|
endif()
|
|
endif()
|
|
|
|
find_package(a_util REQUIRED)
|
|
find_package(ddl REQUIRED)
|
|
enable_testing()
|
|
endif ()
|
|
find_package (Threads)
|
|
find_package(gtest REQUIRED CONFIG)
|
|
include(GoogleTest)
|
|
|
|
if (WIN32 AND CMAKE_CL_64)
|
|
add_definitions(-DWIN64)
|
|
endif()
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
add_subdirectory(_common)
|
|
add_subdirectory(codec/src)
|
|
add_subdirectory(ddlrepresentation/src)
|
|
add_subdirectory(ddlinspector/src)
|
|
add_subdirectory(mapping/src)
|
|
add_subdirectory(headerrepresentation/src)
|
|
|
|
add_subdirectory(ddlgenerators/src)
|
|
add_subdirectory(function/api/src) |