removing library folder

This commit is contained in:
Andy Pack 2023-06-10 01:10:48 +01:00
parent 70a4c5ee4a
commit da4b330098
Signed by: sarsoo
GPG Key ID: A55BA3536A5E0ED7
5 changed files with 1 additions and 27 deletions

View File

@ -21,5 +21,4 @@ set(CMAKE_CXX_STANDARD 23)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
add_subdirectory(libs/library)
add_subdirectory(src) add_subdirectory(src)

View File

@ -1,15 +0,0 @@
set(LIB_NAME "library")
add_library(${LIB_NAME} src/lib.cpp)
# We need this directory, and users of our library will need it too
target_include_directories(${LIB_NAME} PUBLIC ../../include PRIVATE ./include)
# All users of this library will need at least C++11
target_compile_features(${LIB_NAME} PUBLIC cxx_std_17)
# IDEs should put the headers in a nice place
source_group(
TREE "${PROJECT_SOURCE_DIR}/include"
PREFIX "Header Files"
FILES ${HEADER_LIST})

View File

@ -1,3 +0,0 @@
#pragma once
#include <iostream>

View File

@ -1,7 +0,0 @@
#include "library/lib.hpp"
using namespace std;
void example_func() {
cout << "hello from a func" << endl;
}

View File

@ -16,4 +16,4 @@ FetchContent_Declare(
) )
FetchContent_MakeAvailable(Boost) FetchContent_MakeAvailable(Boost)
target_link_libraries(kc PRIVATE Boost::program_options Boost::log Boost::date_time Boost::filesystem Boost::system Boost::thread Boost::log_setup Boost::chrono Boost::atomic library) target_link_libraries(kc PRIVATE Boost::program_options Boost::log Boost::date_time Boost::filesystem Boost::system Boost::thread Boost::log_setup Boost::chrono Boost::atomic)