-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·33 lines (23 loc) · 1.03 KB
/
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 3.1.0)
set(tid 05T)
project(ceng391_${tid} CXX)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(SRCS image.cc util.cc brief_descriptor.cc)
set(HDRS image.hpp
keypoint.hpp
brief_descriptor.hpp
util.hpp
)
add_executable(image-test ${SRCS} image_test.cc)
add_custom_target(archive rm ceng391_${tid}/*~ -vf && tar --exclude "ceng391_${tid}/build" --exclude "compile_commands.json" --exclude ".clangd" -czvf ceng391_${tid}.tar.gz ceng391_${tid}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/..
COMMENT "Pack and compress files for distribution")
add_custom_target(edit emacsclient -n ${SRCS} ${HDRS} image_test.cc CMakeLists.txt
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMENT "Open source and header files using Emacs server")
add_custom_target(test-valgrind valgrind --leak-check=full --show-leak-kinds=all ./image-test
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/build
DEPENDS image-test
COMMENT "Check for memory leaks using Valgrind")