mirror of
https://github.com/bolero-MURAKAMI/Sprout.git
synced 2025-07-16 15:14:13 +00:00
Add support for CMake
This commit is contained in:
parent
403e83eaf0
commit
e3cb3bae99
35 changed files with 583 additions and 1 deletions
1
tools/CMakeLists.txt
Normal file
1
tools/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
|||
subdirs( compost darkroom )
|
6
tools/compost/CMakeLists.txt
Normal file
6
tools/compost/CMakeLists.txt
Normal file
|
@ -0,0 +1,6 @@
|
|||
add_executable( tools_compost_wavconv wavconv.cpp )
|
||||
set_target_properties( tools_compost_wavconv PROPERTIES OUTPUT_NAME "wavconv" )
|
||||
install( TARGETS tools_compost_wavconv
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
)
|
10
tools/darkroom/CMakeLists.txt
Normal file
10
tools/darkroom/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
if( OpenCV_FOUND )
|
||||
include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${Boost_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} )
|
||||
add_executable( tools_darkroom_texconv texconv.cpp )
|
||||
target_link_libraries( tools_darkroom_texconv ${OpenCV_LDFLAGS} )
|
||||
set_target_properties( tools_darkroom_texconv PROPERTIES OUTPUT_NAME "texconv" )
|
||||
install( TARGETS tools_darkroom_texconv
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION lib
|
||||
)
|
||||
endif( OpenCV_FOUND )
|
|
@ -14,7 +14,7 @@
|
|||
#include <opencv/cv.h>
|
||||
#include <opencv/highgui.h>
|
||||
#include <opencv/cv.hpp>
|
||||
#include <opencv/highgui.hpp>
|
||||
#include <opencv2/highgui/highgui.hpp>
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
if (argc < 2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue