-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
42 lines (35 loc) · 759 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
40
41
42
cmake_minimum_required(VERSION 3.0)
project(isd_linux)
find_package(PkgConfig REQUIRED)
#set(THREADS_PREFER_PTHREAD_FLAG ON)
#find_package(Threads REQUIRED)
find_program(CCACHE_FOUND ccache)
if(CCACHE_FOUND)
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
endif(CCACHE_FOUND)
pkg_check_modules(LIBUSB_1_0 REQUIRED libusb-1.0)
add_compile_options(
-fPIC
-g
-Wall
-DNDEBUG
)
include_directories(${LIBUSB_1_0_INCLUDE_DIRS})
link_directories(${LIBUSB_1_0_LIBRARY_DIRS})
add_executable(isd
isd.cpp
piecedev.cpp
debug.cpp
piecefat.cpp
)
target_link_libraries(isd
${LIBUSB_1_0_LIBRARIES}
)
add_executable(mem
mem.cpp
piecedev.cpp
debug.cpp
)
target_link_libraries(mem
${LIBUSB_1_0_LIBRARIES}
)