correct cmake build to correct new name

This commit is contained in:
Wirlaburla 2023-10-08 16:34:26 -05:00
parent 213c1df791
commit 464ea75483
3 changed files with 4 additions and 22 deletions

View File

@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.5)
project(pengobot)
project(p3ng0)
SET(CMAKE_CXX_STANDARD 17)
SET(CMAKE_CXX_STANDARD_REQUIRED True)
SET(CMAKE_CXX_FLAGS "-O3")
find_package(CURL REQUIRED)
add_subdirectory(src)
install(TARGETS pengobot RUNTIME DESTINATION bin)
install(TARGETS p3ng0 RUNTIME DESTINATION bin)

View File

@ -1,4 +1,4 @@
add_executable(pengobot
add_executable(p3ng0
main.cpp
)
target_link_libraries(pengobot curl -static-libgcc -static-libstdc++)
target_link_libraries(p3ng0 curl -static-libgcc -static-libstdc++)

View File

@ -1,18 +0,0 @@
#include <iostream>
#define CURL_STATICLIB
#include <curl/curl.h>
#include <math.h>
#include <unistd.h>
#ifdef __linux__
#include <sys/ioctl.h>
#endif
size_t my_array_write(char *ptr, size_t size, size_t nmemb, void *userdata) {
}
void getTitle(std::string url, const char* filename) {
}