inital commit
This commit is contained in:
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 2.4)
|
||||
|
||||
|
||||
project(SensorLogPlot)
|
||||
|
||||
set(SRC_FILES main.cpp)
|
||||
set(LIBS -lboost_iostreams -lboost_system -lboost_filesystem)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SRC_FILES})
|
||||
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-O2 -s")
|
||||
|
||||
target_include_directories(SensorLogPlot PRIVATE gnuplot-iostream)
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME} ${LIBS} )
|
||||
set_target_properties( ${PROJECT_NAME} PROPERTIES COMPILE_FLAGS -m64 LINK_FLAGS -m64)
|
||||
add_definitions(" -std=c++11 -Wall ")
|
||||
|
||||
install(TARGETS SensorLogPlot RUNTIME DESTINATION bin)
|
Reference in New Issue
Block a user