Add support for CMake

This commit is contained in:
Fadis 2013-11-28 02:10:47 +09:00
parent 403e83eaf0
commit e3cb3bae99
35 changed files with 583 additions and 1 deletions

1
tools/CMakeLists.txt Normal file
View file

@ -0,0 +1 @@
subdirs( compost darkroom )

View 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
)

View 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 )

View file

@ -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) {