-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (22 loc) · 878 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
cmake_minimum_required (VERSION 2.8)
project (rpi_gamepad_driver)
#version number
set (rpi_gamepad_driver_VERSION_MAJOR 1)
set (rpi_gamepad_driver_VERSION_MINOR 0)
# Include source dir (for CMakeLists.txt)
# add_subdirectory (src)
# Include inclueds dir
include_directories(src)
file(GLOB SOURCES "src/*.c")
add_executable (rpi_gamepad_driver ${SOURCES})
#add_library(rpigamepad SHARED ${SOURCES})
#add_library(rpigamepad STATIC ${SOURCES})
# Specify which libraries to link during the build
# target_link_libraries (CMakeHelloWorld Hello)
# If needed, I can specify the position of the libraries
# set ( PROJECT_LINK_LIBS libtestStudent.so )
# link_directories( path for the dynamic libraries )
# set ( PROJECT_LINK_LIBS libtestStudent.a )
# link_directories( path for the static libraries )
# Used when installing
install (TARGETS rpi_gamepad_driver DESTINATION bin)