|
|
@ -5,16 +5,20 @@ project(broom) |
|
|
|
set(CMAKE_CXX_STANDARD 17) |
|
|
|
set(CMAKE_CXX_STANDARD 17) |
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True) |
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED True) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IF(MSVC) |
|
|
|
|
|
|
|
# to be made, probably... |
|
|
|
|
|
|
|
else() |
|
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") |
|
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") |
|
|
|
set(BUILD_SHARED_LIBS OFF) |
|
|
|
set(BUILD_SHARED_LIBS OFF) |
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-static") |
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-static") |
|
|
|
|
|
|
|
|
|
|
|
find_package(Threads REQUIRED) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |
|
|
|
set(CMAKE_THREAD_PREFER_PTHREAD TRUE) |
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE) |
|
|
|
set(THREADS_PREFER_PTHREAD_FLAG TRUE) |
|
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -Wall -Werror -O2") |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror -O2") |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set(EXECUTABLE_OUTPUT_PATH ../bin) |
|
|
|
set(EXECUTABLE_OUTPUT_PATH ../bin) |
|
|
|
|
|
|
|
|
|
|
|