This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------------------------- | |
# Include OpenCV library and copy the dlls on Windows | |
#-------------------------------------------------------------------- | |
set(OpenCV_STATIC OFF) | |
find_package( OpenCV REQUIRED ) | |
include_directories( ${OpenCV_INCLUDE_DIRS} ) | |
target_link_libraries( ${PROJECT_NAME} ${OpenCV_LIBS} ) | |
if(NOT OpenCV_STATIC) | |
if(WIN32) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-------------------------------------------------------------------- | |
# Hide the console window in visual studio projects | |
#-------------------------------------------------------------------- | |
if(MSVC) | |
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:WINDOWS /ENTRY:mainCRTStartup") | |
endif() | |
#-------------------------------------------------------------------- | |
# Hide the console window in visual studio projects - Release | |
#-------------------------------------------------------------------- |