|
From: | Johnathan Corgan |
Subject: | Re: [Discuss-gnuradio] Example CMakeLists for dial_tone.cc |
Date: | Sat, 28 May 2016 17:55:40 -0700 |
Does anyone have an example CMakeLists.txt to build something very simple like dial_tone.cc? I DON'T want to do this in the GR source tree, rather just have simple ~/dial_tone containing the single *.cc and CmakeLists.txt. I have learned enough c++ now to work through the guided tutorials, but the build environment is still somewhat overwhelming, so I want to start basic and work my way up.
cmake_minimum_required(VERSION 2.6)project(dialtone CXX)find_package(Boost "1.35" COMPONENTS system)set(GR_REQUIRED_COMPONENTS RUNTIME ANALOG AUDIO)find_package(Gnuradio "3.7.2" REQUIRED)include_directories(${GNURADIO_ALL_INCLUDE_DIRS})add_executable(dialtone dial_tone.cc)target_link_libraries(dialtone ${Boost_LIBRARIES} ${GNURADIO_ALL_LIBRARIES})
[Prev in Thread] | Current Thread | [Next in Thread] |