2023-03-21 21:35:50 +08:00
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
project(Bit.ASICmon)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 23)
|
|
|
|
|
2023-03-26 16:36:28 +08:00
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "-static -O3 -Wall -pedantic")
|
|
|
|
#set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -O3 -Wall -pedantic")
|
|
|
|
#set(CMAKE_EXE_LINKER_FLAGS "-O3 -Wall -pedantic")
|
2023-03-21 21:35:50 +08:00
|
|
|
|
2023-03-22 09:45:51 +08:00
|
|
|
add_executable(bitasicmon main.cpp inc/getosname.hpp inc/json.hpp inc/args.hpp inc/macros.hpp inc/colors.hpp)
|
2023-03-26 16:36:28 +08:00
|
|
|
target_link_libraries(bitasicmon "-lcurl -lresolv")
|