Commit eccb98a6 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Improve build process by using CMake.

parent 8395b988
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
.idea/
bin/
lib/
*.cmake
CMakeCache.txt
CMakeFiles/
Makefile
 No newline at end of file

CMakeLists.txt

0 → 100644
+14 −0
Original line number Diff line number Diff line
cmake_minimum_required (VERSION 2.8.11)
project (PRRT)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

add_subdirectory(prrt)
add_library(PRRT prrt/prrt_socket.c)

add_executable(sender sender.c)
add_executable(receiver receiver.c)
target_link_libraries(sender LINK_PUBLIC PRRT)
target_link_libraries(receiver LINK_PUBLIC PRRT)
 No newline at end of file

Makefile

deleted100644 → 0
+0 −6
Original line number Diff line number Diff line
CC=gcc
CFLAGS=-I

all:
	$(CC) -o ./bin/sender prrt/prrt_socket.c sender.c -Wall
	$(CC) -o ./bin/receiver prrt/prrt_socket.c receiver.c -Wall

prrt/CMakeLists.txt

0 → 100644
+3 −0
Original line number Diff line number Diff line
cmake_minimum_required (VERSION 2.8.11)
project (libprrt)