Skip to content

Instantly share code, notes, and snippets.

@Algogator
Created August 11, 2020 14:22
Show Gist options
  • Save Algogator/c05c758a0ff64a4ecff2926d83e72cae to your computer and use it in GitHub Desktop.
Save Algogator/c05c758a0ff64a4ecff2926d83e72cae to your computer and use it in GitHub Desktop.
makefile
cmake_minimum_required(VERSION 2.8.12)
project(lotd)
add_definitions("-std=c++11")
set(libname "config")
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
file(GLOB SRC
"timer/*.cpp"
"server/*.cpp"
"hardware/*.cpp"
"client/*.cpp"
"timeseries/*.cpp"
)
add_library( myLib STATIC ${SRC} )
set(SOURCE_FILES src/main.cpp)
set(ROOTFS_ORIG /home/aphilips/dart/_rootfs)
include_directories("${CMAKE_SOURCE_DIR}/server"
"${CMAKE_SOURCE_DIR}/hardware"
"${CMAKE_SOURCE_DIR}/client"
"${CMAKE_SOURCE_DIR}/timer"
"${CMAKE_SOURCE_DIR}/timeseries"
)
add_executable( Main ${SOURCE_FILES} )
target_include_directories(Main PRIVATE ${CMAKE_SOURCE_DIR}/lib)
target_link_libraries( Main myLib ${CONAN_LIBS} ${libname}++ gsl gslcblas)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment