DBT-RISE-TGC/external/CMakeLists.txt

29 lines
600 B
CMake
Raw Normal View History

2018-03-28 10:29:45 +02:00
cmake_minimum_required(VERSION 3.3)
2017-08-27 12:10:38 +02:00
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/../cmake)
# Set the name of your project here
project("external")
include(Common)
2018-11-08 13:31:28 +01:00
include_directories( ${PROJECT_SOURCE_DIR}/libGIS )
2017-08-27 12:10:38 +02:00
FILE(GLOB ElfioHeaders elfio *.hpp)
FILE(GLOB GISHeaders libGis *.h)
2017-09-21 20:29:23 +02:00
set(LIB_HEADERS ${ElfioHeaders} ${GISHeaders})
2017-08-27 12:10:38 +02:00
set(LIB_SOURCES
libGIS/atmel_generic.c
libGIS/ihex.c
libGIS/srecord.c
)
# Define two variables in order not to repeat ourselves.
set(LIBRARY_NAME external)
# Define the library
add_library(${LIBRARY_NAME} ${LIB_SOURCES})