change location of project to CPP and add to GIT
This commit is contained in:
4
Readme.txt
Normal file
4
Readme.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
|
||||
-- Listener
|
||||
The Listener project produces an output file called sstp which is used for transferring files over the network
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
cmake_minimum_required(VERSION 3.10.0)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/home/pi/Boneyard")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/home/pi/CPP")
|
||||
project(common VERSION 0.1.0 LANGUAGES C CXX)
|
||||
|
||||
add_library(common string.cpp fileio.cpp intel.cpp mmap.cpp)
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
cmake_minimum_required(VERSION 3.10.0)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/home/pi/Boneyard")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/home/pi/CPP")
|
||||
project(listener VERSION 0.1.0 LANGUAGES C CXX)
|
||||
|
||||
add_executable(listener main.cpp ClientSocketSender.cpp SocketConnectionReceiver.cpp SocketServer.cpp)
|
||||
|
||||
add_subdirectory(/home/pi/Boneyard/common /home/pi/Boneyard/common/build)
|
||||
add_subdirectory(/home/pi/CPP/common /home/pi/CPP/common/build)
|
||||
target_link_libraries(listener PRIVATE common)
|
||||
|
||||
# we are naming the output executable sstp
|
||||
set_target_properties(listener PROPERTIES OUTPUT_NAME "sstp")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user