LangBuilder/CMakeLists.txt

12 lines
438 B
CMake
Raw Normal View History

2020-08-30 14:44:45 +00:00
cmake_minimum_required(VERSION 3.17)
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)