32 lines
782 B
CMake
32 lines
782 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
# Set the name of your project here
|
|
project("external")
|
|
|
|
include(Common)
|
|
|
|
|
|
include_directories( ${PROJECT_SOURCE_DIR}/external/libGIS ${PROJECT_SOURCE_DIR}/external/easyloggingpp/src )
|
|
|
|
FILE(GLOB ElfioHeaders elfio *.hpp)
|
|
FILE(GLOB GISHeaders libGis *.h)
|
|
FILE(GLOB LogHeaders easyloggingpp/src *.h)
|
|
|
|
set(LIB_HEADERS ${ElfioHeaders} ${GISHeaders} ${LogHeaders})
|
|
set(LIB_SOURCES
|
|
libGIS/atmel_generic.c
|
|
libGIS/ihex.c
|
|
libGIS/srecord.c
|
|
easyloggingpp/src/easylogging++.cc
|
|
)
|
|
|
|
# Define two variables in order not to repeat ourselves.
|
|
set(LIBRARY_NAME external)
|
|
|
|
# Define the library
|
|
add_library(${LIBRARY_NAME} ${LIB_SOURCES})
|
|
|
|
|