batman
This commit is contained in:
commit
a1a8766f36
3 changed files with 28 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
cmake-build-debug
|
||||||
|
.idea
|
||||||
18
CMakeLists.txt
Normal file
18
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
|
project(short-link VERSION 1.0 LANGUAGES CXX)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||||
|
|
||||||
|
add_executable(Application src/main.cpp)
|
||||||
|
|
||||||
|
find_package(Boost REQUIRED COMPONENTS filesystem system)
|
||||||
|
|
||||||
|
if(Boost_FOUND)
|
||||||
|
include_directories(${Boost_INCLUDE_DIRS})
|
||||||
|
link_directories(${Boost_LIBRARY_DIRS})
|
||||||
|
target_link_libraries(Application PRIVATE Boost::filesystem Boost::system)
|
||||||
|
else()
|
||||||
|
message(FATAL_ERROR "Boost not found!")
|
||||||
|
endif()
|
||||||
8
src/main.cpp
Normal file
8
src/main.cpp
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <iostream>
|
||||||
|
#include <boost/version.hpp>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main(int argc, char *argv[]) {
|
||||||
|
cout << "Boost version: " << BOOST_LIB_VERSION << endl;
|
||||||
|
}
|
||||||
Reference in a new issue