diff --git a/libs/transpiler/CMakeLists.txt b/libs/transpiler/CMakeLists.txt index 790764a9b..556f00202 100644 --- a/libs/transpiler/CMakeLists.txt +++ b/libs/transpiler/CMakeLists.txt @@ -1,31 +1,6 @@ -#---------------------------------------------------------------------------# -# Copyright (c) 2018-2020 Mikhail Komarov -# -# Distributed under the Boost Software License, Version 1.0 -# See accompanying file LICENSE_1_0.txt or copy at -# http://www.boost.org/LICENSE_1_0.txt -#---------------------------------------------------------------------------# - -cmake_minimum_required(VERSION 2.8.12) - -cmake_policy(SET CMP0028 NEW) -cmake_policy(SET CMP0042 NEW) -cmake_policy(SET CMP0048 NEW) -cmake_policy(SET CMP0057 NEW) -cmake_policy(SET CMP0076 NEW) - -list(APPEND CMAKE_MODULE_PATH - "${CMAKE_CURRENT_LIST_DIR}/cmake" - "${CMAKE_CURRENT_LIST_DIR}/cmake/packages" - "${CMAKE_CURRENT_LIST_DIR}/cmake/modules/share/modules/cmake") - include(CMConfig) include(CMSetupVersion) -if(NOT CMAKE_WORKSPACE_NAME OR NOT ("${CMAKE_WORKSPACE_NAME}" STREQUAL "crypto3")) - cm_workspace(crypto3) -endif() - cm_project(transpiler WORKSPACE_NAME ${CMAKE_WORKSPACE_NAME} LANGUAGES ASM C CXX) include(CMDeploy) @@ -35,22 +10,19 @@ cm_setup_version(VERSION 0.1.0 PREFIX ${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_ add_library(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} INTERFACE) set_target_properties(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} PROPERTIES - EXPORT_NAME ${CURRENT_PROJECT_NAME}) - + EXPORT_NAME ${CURRENT_PROJECT_NAME}) target_include_directories(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} INTERFACE - "$" - "$" - - ${Boost_INCLUDE_DIRS}) + $ + $) target_link_libraries(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} INTERFACE - crypto3::all - ${Boost_LIBRARIES}) + ${Boost_LIBRARIES} +) cm_deploy(TARGETS ${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} - INCLUDE include - NAMESPACE ${CMAKE_WORKSPACE_NAME}::) + INCLUDE include + NAMESPACE ${CMAKE_WORKSPACE_NAME}::) include(CMTest) cm_add_test_subdirectory(test) diff --git a/libs/transpiler/test/CMakeLists.txt b/libs/transpiler/test/CMakeLists.txt index 0912119a2..d5ce9f3b6 100644 --- a/libs/transpiler/test/CMakeLists.txt +++ b/libs/transpiler/test/CMakeLists.txt @@ -9,8 +9,10 @@ include(CMTest) cm_test_link_libraries(${CMAKE_WORKSPACE_NAME}_${CURRENT_PROJECT_NAME} - - crypto3::all + crypto3::algebra + crypto3::math + crypto3::multiprecision + crypto3::zk ${Boost_LIBRARIES}) add_custom_target(compile_and_run_transpiler_tests)