1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| cmake_minimum_required(VERSION 3.0)
project(canalyst)
SET(CMAKE_SYSTEM_NAME Linux) SET(CMAKE_C_COMPILER "gcc") SET(CMAKE_CXX_COMPILER "g++")
SET(EXECUTABLE_OUTPUT_PATH ../bin)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O0 -Wall -pthread -std=c++11 -fPIC ")
include_directories(src)
aux_source_directory(src SRC_LIST)
link_directories(lib) set(LIB_LIST libcontrolcan.so )
add_executable(${PROJECT_NAME} ${SRC_LIST} ) target_link_libraries(${PROJECT_NAME} ${LIB_LIST})
|