LangBuilder/CMakeLists.txt

13 lines
473 B
CMake
Raw Normal View History

2020-08-30 14:48:19 +00:00
cmake_minimum_required(VERSION 3.15)
2020-08-30 14:44:45 +00:00
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)
2021-09-07 16:47:51 +00:00
set(BUILD_SHARED_LIBS OFF)
2020-08-30 14:44:45 +00:00
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp")
add_executable(LangBuilder ${SRC_FILES})
2021-09-07 16:47:51 +00:00
target_link_libraries(LangBuilder -static -static-libgcc -static-libstdc++ -Wl,-Bstatic -lstdc++ -lpthread)