Skip to content

Commit

Permalink
attempt to not copy so much (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf authored Jan 7, 2022
1 parent bc69e6b commit ef96683
Show file tree
Hide file tree
Showing 15 changed files with 423 additions and 284 deletions.
14 changes: 5 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,22 @@ cmake_minimum_required(VERSION 3.10)
project(asm-parser)

set(CMAKE_CXX_STANDARD 20)
add_compile_options(-Werror -Wall -Wextra -flto -O3)
add_compile_options(-Werror -Wall -Wextra -O3 -flto)

if (NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake")
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan")
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.15/conan.cmake"
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/v0.16.1/conan.cmake"
"${CMAKE_BINARY_DIR}/conan.cmake"
TLS_VERIFY ON)
endif ()

include(${CMAKE_BINARY_DIR}/conan.cmake)

conan_add_remote(NAME bincrafters INDEX 1
URL https://api.bintray.com/conan/bincrafters/public-conan)

conan_cmake_run(
REQUIRES
ctre/3.2
catch2/2.12.4
approvaltests.cpp/10.3.0
fmt/7.0.3
catch2/2.13.7
approvaltests.cpp/10.12.0
fmt/8.0.1
BASIC_SETUP
BUILD missing)

Expand Down
2 changes: 2 additions & 0 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ sudo -H pip3 install conan

conan profile new default --detect
conan profile update settings.compiler.libcxx=libstdc++11 default

git clone https://github.com/hanickadot/compile-time-regular-expressions ctre
Loading

0 comments on commit ef96683

Please sign in to comment.