Playing with C++17 via solving "Cracking the Coding Interview" questions.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cxx17/CMakeLists.txt

75 lines
1.8 KiB

project(cxx17)
cmake_minimum_required(VERSION 3.7)
enable_testing()
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_compile_options(-std=c++1z -Wall -Wextra -Werror -pedantic)
add_compile_options(-fdiagnostics-color -O1)
find_program(iwyu_path NAMES include-what-you-use iwyu)
add_executable(cc11 cc11.cc)
target_link_libraries(cc11 ${CONAN_LIBS})
add_test(cc11 bin/cc11)
add_executable(cc12 cc12.cc)
target_link_libraries(cc12 ${CONAN_LIBS})
add_test(cc12 bin/cc12)
add_executable(cc13 cc13.cc)
target_link_libraries(cc13 ${CONAN_LIBS})
add_test(cc13 bin/cc13)
add_executable(cc14 cc14.cc)
target_link_libraries(cc14 ${CONAN_LIBS})
add_test(cc14 bin/cc14)
add_executable(cc15 cc15.cc)
target_link_libraries(cc15 ${CONAN_LIBS})
add_test(cc15 bin/cc15)
add_executable(cc16 cc16.cc)
target_link_libraries(cc16 ${CONAN_LIBS})
add_test(cc16 bin/cc16)
# set_property(TARGET cc16 PROPERTY CXX_INCLUDE_WHAT_YOU_USE ${iwyu_path})
add_executable(cc17 cc17.cc)
target_link_libraries(cc17 ${CONAN_LIBS})
add_test(cc17 bin/cc17)
add_executable(cc18 cc18.cc)
target_link_libraries(cc18 ${CONAN_LIBS})
add_test(cc18 bin/cc18)
add_executable(cc19 cc19.cc)
target_link_libraries(cc19 ${CONAN_LIBS})
add_test(cc19 bin/cc19)
add_executable(cc21 cc21.cc)
target_link_libraries(cc21 ${CONAN_LIBS})
add_test(cc21 bin/cc21)
add_executable(cc192 cc192.cc)
target_link_libraries(cc192 ${CONAN_LIBS})
add_test(cc192 bin/cc192)
add_executable(cc193 cc193.cc)
target_link_libraries(cc193 ${CONAN_LIBS})
add_test(cc193 bin/cc193)
add_executable(cc195 cc195.cc)
target_link_libraries(cc195 ${CONAN_LIBS})
add_test(cc195 bin/cc195)
add_executable(cc197 cc197.cc)
target_link_libraries(cc197 ${CONAN_LIBS})
add_test(cc197 bin/cc197)
add_executable(cx_shuffle cx_shuffle.cc)
target_link_libraries(cx_shuffle ${CONAN_LIBS})
add_test(cx_shuffle bin/cx_shuffle)