Commit eccb98a6 authored by Andreas Schmidt's avatar Andreas Schmidt

Improve build process by using CMake.

parent 8395b988
.idea/
bin/
lib/
*.cmake
CMakeCache.txt
CMakeFiles/
Makefile
\ No newline at end of file
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
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
cmake_minimum_required (VERSION 2.8.11)
project (libprrt)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment