Commit f0e5eef7 authored by legoc's avatar legoc

Added CMake makefile

parent 1cd9bd88
#------------------------------------------------------------
# Project
#------------------------------------------------------------
cmake_minimum_required(VERSION 3.7.2)
# Project name and version
project(cameo-tests VERSION 1.0.0 LANGUAGES CXX)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
include(FetchContent)
if (NOT DEFINED CMAKE_CXX_STANDARD)
# specify the C++ standard
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
endif()
find_package(cameo 1.1.0 REQUIRED)
#------------------------------------------------------------
# Programs
#------------------------------------------------------------
add_executable(openport src/OpenPort.cpp)
target_link_libraries(openport PUBLIC cameo zmq)
add_executable(testcameo src/Test.cpp)
target_link_libraries(testcameo PUBLIC cameo zmq)
add_executable(testveryfast src/TestVeryFast.cpp)
target_link_libraries(testveryfast PUBLIC cameo zmq)
add_executable(testsimple src/TestSimpleApplication.cpp)
target_link_libraries(testsimple PUBLIC cameo zmq)
add_executable(testbadendpoint src/TestBadEndpoint.cpp)
target_link_libraries(testbadendpoint PUBLIC cameo zmq)
add_executable(teststate src/TestStateApplication.cpp)
target_link_libraries(teststate PUBLIC cameo zmq)
add_executable(testpublisher src/TestPublisherApplication.cpp)
target_link_libraries(testpublisher PUBLIC cameo zmq)
add_executable(testpublishertwo src/TestPublisherTwoApplication.cpp)
target_link_libraries(testpublishertwo PUBLIC cameo zmq)
add_executable(testsubscriber src/TestSubscriberApplication.cpp)
target_link_libraries(testsubscriber PUBLIC cameo zmq)
add_executable(testsubscriberandpublisher src/TestSubscriberAndPublisherApplication.cpp)
target_link_libraries(testsubscriberandpublisher PUBLIC cameo zmq)
add_executable(testsubscriberandpublishertwo src/TestSubscriberAndPublisherTwoApplication.cpp)
target_link_libraries(testsubscriberandpublishertwo PUBLIC cameo zmq)
add_executable(testnonsyncsubscriber src/TestNonSyncSubscriberApplication.cpp)
target_link_libraries(testnonsyncsubscriber PUBLIC cameo zmq)
add_executable(testnonsyncsubscribersandpublisher src/TestNonSyncSubscribersAndPublisherApplication.cpp)
target_link_libraries(testnonsyncsubscribersandpublisher PUBLIC cameo zmq)
add_executable(testresult src/TestResultApplication.cpp)
target_link_libraries(testresult PUBLIC cameo zmq)
add_executable(teststartwithresult src/TestStartWithResultApplication.cpp)
target_link_libraries(teststartwithresult PUBLIC cameo zmq)
add_executable(teststop src/TestStopApplication.cpp)
target_link_libraries(teststop PUBLIC cameo zmq)
add_executable(teststartwithstop src/TestStartWithStopApplication.cpp)
target_link_libraries(teststartwithstop PUBLIC cameo zmq)
add_executable(teststartwithsimple src/TestStartWithSimpleApplication.cpp)
target_link_libraries(teststartwithsimple PUBLIC cameo zmq)
add_executable(teststartwithveryfast src/TestStartWithVeryFastApplication.cpp)
target_link_libraries(teststartwithveryfast PUBLIC cameo zmq)
add_executable(testerror src/TestErrorApplication.cpp)
target_link_libraries(testerror PUBLIC cameo zmq)
add_executable(teststartwitherror src/TestStartWithErrorApplication.cpp)
target_link_libraries(teststartwitherror PUBLIC cameo zmq)
add_executable(testpublisherloop src/TestPublisherLoopApplication.cpp)
target_link_libraries(testpublisherloop PUBLIC cameo zmq)
add_executable(testresponder src/TestResponderApplication.cpp)
target_link_libraries(testresponder PUBLIC cameo zmq)
add_executable(testrequesterandresponder src/TestRequesterAndResponderApplication.cpp)
target_link_libraries(testrequesterandresponder PUBLIC cameo zmq)
add_executable(testcancel src/TestCancelApplication.cpp)
target_link_libraries(testcancel PUBLIC cameo zmq pthread)
add_executable(testtimeout src/TestTimeoutApplication.cpp)
target_link_libraries(testtimeout PUBLIC cameo zmq)
add_executable(testconnectionchecker src/TestConnectionCheckerApplication.cpp)
target_link_libraries(testconnectionchecker PUBLIC cameo zmq)
add_executable(testfaststream src/TestFastStream.cpp)
target_link_libraries(testfaststream PUBLIC cameo zmq)
add_executable(testinputstream src/TestInputStream.cpp)
target_link_libraries(testinputstream PUBLIC cameo zmq)
add_executable(teststoptimeout src/TestStopTimeoutApplication.cpp)
target_link_libraries(teststoptimeout PUBLIC cameo zmq)
add_executable(responder src/examples/ResponderApplication.cpp)
target_link_libraries(responder PUBLIC cameo zmq)
add_executable(requester src/examples/RequesterApplication.cpp)
target_link_libraries(requester PUBLIC cameo zmq)
add_executable(publisher src/examples/PublisherApplication.cpp)
target_link_libraries(publisher PUBLIC cameo zmq)
add_executable(subscriber src/examples/SubscriberApplication.cpp)
target_link_libraries(subscriber PUBLIC cameo zmq)
add_executable(testrequestertimeout src/TestRequesterApplicationForTimeout.cpp)
target_link_libraries(testrequestertimeout PUBLIC cameo zmq)
add_executable(testrequesterandrespondertimeout src/TestRequesterAndResponderApplicationForTimeout.cpp)
target_link_libraries(testrequesterandrespondertimeout PUBLIC cameo zmq)
add_executable(teststream src/TestStreamApplication.cpp)
target_link_libraries(teststream PUBLIC cameo zmq)
add_executable(teststartstream src/TestStartStreamApplication.cpp)
target_link_libraries(teststartstream PUBLIC cameo zmq pthread)
add_executable(testresponderserver src/TestResponderServer.cpp)
target_link_libraries(testresponderserver PUBLIC cameo zmq)
add_executable(testrequesterclient src/TestRequesterClient.cpp)
target_link_libraries(testrequesterclient PUBLIC cameo zmq)
add_executable(teststorage src/TestStorageApplication.cpp)
target_link_libraries(teststorage PUBLIC cameo zmq)
add_executable(testwaitforstorage src/TestWaitForStorageApplication.cpp)
target_link_libraries(testwaitforstorage PUBLIC cameo zmq)
add_executable(teststartwaitforstorage src/TestStartWithWaitForStorageApplication.cpp)
target_link_libraries(teststartwaitforstorage PUBLIC cameo zmq)
add_executable(testcomport src/TestComPortApplication.cpp)
target_link_libraries(testcomport PUBLIC cameo zmq)
add_executable(teststartcomport src/TestStartWithComPortApplication.cpp)
target_link_libraries(teststartcomport PUBLIC cameo zmq)
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