-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
46 lines (40 loc) · 1.18 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
34
35
36
37
38
39
40
41
42
43
44
45
46
project(lycklig)
cmake_minimum_required(VERSION 3.0)
find_package(OpenCV REQUIRED)
include(FindPkgConfig)
pkg_check_modules(PKGCONFS REQUIRED tclap Magick++)
find_package(Boost REQUIRED COMPONENTS filesystem system)
string(REPLACE ";" " " PKGCONFS_CFLAGS "${PKGCONFS_CFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fopenmp ${PKGCONFS_CFLAGS}")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -O3")
add_executable(lycklig
src/cookedtemplate.cpp
src/globalregistrator.cpp
src/imageops.cpp
src/imagepatch.cpp
src/dedistort.cpp
src/main.cpp
src/rbfwarper.cpp
src/registrationcontext.cpp
src/registrationparams.cpp
)
target_link_libraries(lycklig
${OpenCV_LIBS}
${PKGCONFS_LDFLAGS}
${Boost_LIBRARIES}
)
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/kinky/kinky.py
${CMAKE_CURRENT_BINARY_DIR}/kinky
@ONLY)
install(TARGETS lycklig
RUNTIME
DESTINATION bin)
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/kinky
DESTINATION bin)
install(FILES kinky/kinky.desktop
DESTINATION share/applications/)
install(FILES kinky/kinky.svgz
RENAME application-x-kinky.svgz
DESTINATION share/icons/)