removing library folder
This commit is contained in:
parent
70a4c5ee4a
commit
da4b330098
@ -21,5 +21,4 @@ set(CMAKE_CXX_STANDARD 23)
|
||||
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||
|
||||
add_subdirectory(libs/library)
|
||||
add_subdirectory(src)
|
@ -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})
|
@ -1,3 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <iostream>
|
@ -1,7 +0,0 @@
|
||||
#include "library/lib.hpp"
|
||||
|
||||
using namespace std;
|
||||
|
||||
void example_func() {
|
||||
cout << "hello from a func" << endl;
|
||||
}
|
@ -16,4 +16,4 @@ FetchContent_Declare(
|
||||
)
|
||||
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)
|
Loading…
Reference in New Issue
Block a user