1 cmake_minimum_required(VERSION 3.11) 2 3 project(container_compare) 4 5 include_directories(include) 6 7 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) 8 9 set(CMAKE_CXX_FLAGS "-O3") 10 11 set(INT_KEY_SOURCES src/int_key.cc) 12 add_executable(int_key_compare ${INT_KEY_SOURCES}) 13 TARGET_LINK_LIBRARIES(int_key_compare pthread) 14 15 set(STRING_KEY_SOURCES src/string_key.cc) 16 add_executable(string_key_compare ${STRING_KEY_SOURCES}) 17 TARGET_LINK_LIBRARIES(string_key_compare pthread)