12 lines
438 B
CMake
12 lines
438 B
CMake
cmake_minimum_required(VERSION 3.15)
|
|
project(LangBuilder)
|
|
|
|
# Enable all warnings, and make them error when occurring.
|
|
add_compile_options(-Wall -Wextra -Werror)
|
|
# We like new stuff, so set the c++ standard to c++20.
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
|
|
|
|
add_executable(LangBuilder ${SRC_FILES})
|
|
target_link_libraries(LangBuilder -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread) |