-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (30 loc) · 930 Bytes
/
CMakeLists.txt
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
34
35
36
37
38
39
cmake_minimum_required(VERSION 2.8)
project(inception-rtdebugger-driver)
set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set (CMAKE_CXX_STANDARD 11)
include_directories("include")
file(GLOB SOURCES src/benchmark/*.cpp
src/builder/*.cpp
src/builder/file_builder/*.cpp
src/builder/inception/*.cpp
src/builder/jtag/*.cpp
src/decoders/*.cpp
src/decoders/inception/*.cpp
src/decoders/jtag/*.cpp
src/drivers/*.cpp
src/drivers/flash/*.cpp
src/device/*.cpp
src/interface/*.cpp
src/test/*.cpp
src/trace/*.cpp
src/binutils/*.cpp
src/System.cpp
src/superspeedjtag.cpp
src/Exception.cpp)
add_library(inception STATIC ${SOURCES})
target_link_libraries(inception pthread usb-1.0)
#add_library(inception-dbg-cli SHARED ${SOURCES})
add_executable(inception-dbg-cli src/main.cpp)
target_link_libraries(inception-dbg-cli pthread usb-1.0 inception)