CMakeLists.txt 358 B

1234567891011121314
  1. cmake_minimum_required(VERSION 3.1)
  2. project(SOLE-solver)
  3. set(CMAKE_CXX_STANDART 17)
  4. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  5. set(CMAKE_CXX_FLAGS "-std=c++17 -Wall -Wextra -Wpedantic -O3 -Os")
  6. file(GLOB SRC_FILES "src/*.cpp")
  7. file(GLOB INC_FILES "include/*.hpp")
  8. add_executable(${PROJECT_NAME} ${SRC_FILES} ${INC_FILES})
  9. target_link_libraries(${PROJECT_NAME})