-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (29 loc) · 950 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
cmake_minimum_required(VERSION 2.6)
project(gdbstub)
# All includes are relative to the "include" directory
include_directories ("${PROJECT_SOURCE_DIR}/src")
enable_language(ASM)
add_library (gdbstub
src/gdbstub.h
src/logger/Logger.h
src/nxlink/nxlink.h
src/usb/usb.h
src/usb/USBInterface.h
src/usb/USBSerial.h
src/usb/USBSerialComInterface.h
src/usb/USBSerialDataInterface.h
src/exception.s
src/gdbstub.cpp
src/logger/Logger.cpp
src/nxlink/nxlink.cpp
src/usb/usb.c
src/usb/USBSerial.cpp
src/usb/USBSerialComInterface.cpp
src/usb/USBSerialDataInterface.cpp
)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
configure_file ("cmake/gdbstub.pc.in" "${PROJECT_BINARY_DIR}/gdbstub.pc" @ONLY)
install(TARGETS gdbstub DESTINATION "${CMAKE_INSTALL_LIBDIR}")
install(FILES src/gdbstub.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
install(FILES "${PROJECT_BINARY_DIR}/gdbstub.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")