Inital commit
This commit is contained in:
19
CMakeLists.txt
Normal file
19
CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
cmake_minimum_required(VERSION 2.4)
|
||||
|
||||
project(unwap)
|
||||
|
||||
set(SRC_FILES main.cpp )
|
||||
set(LIBS -lX11 -lrt)
|
||||
|
||||
find_package( OpenCV REQUIRED )
|
||||
|
||||
add_executable(${PROJECT_NAME} ${SRC_FILES})
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME} ${LIBS} -lopencv_core -lopencv_imgcodecs -lopencv_highgui -lopencv_features2d -lopencv_imgcodecs -lopencv_imgproc )
|
||||
target_include_directories(${PROJECT_NAME} PRIVATE "/usr/include/opencv4")
|
||||
add_definitions(" -std=c++17 -Wall -O2 -flto -fno-strict-aliasing")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")
|
||||
|
||||
|
||||
set(CMAKE_INSTALL_PREFIX "/usr")
|
||||
install(TARGETS ${PROJECT_NAME} RUNTIME DESTINATION bin)
|
Reference in New Issue
Block a user