@@ -6,9 +6,12 @@ include_directories(main
66 ../libopentld/mftracker
77 ../libopentld/tld
88 ../3rdparty/cvblobs
9- ../3rdparty/libconfig
109 ${OpenCV_INCLUDE_DIRS} )
1110
11+ if (NOT USE_SYSTEM_LIBS)
12+ include_directories (../3rdparty/libconfig)
13+ endif (NOT USE_SYSTEM_LIBS)
14+
1215#-------------------------------------------------------------------------------
1316# main
1417add_library (main
@@ -21,14 +24,14 @@ add_library(main
2124 main/Main.h
2225 main/Settings.h)
2326
24- target_link_libraries (main libopentld cvblobs libconfig ${OpenCV_LIBS} )
27+ target_link_libraries (main libopentld cvblobs config++ ${OpenCV_LIBS} )
2528
2629#-------------------------------------------------------------------------------
2730# opentld
2831add_executable (opentld
2932 OpenTLD.cpp)
3033
31- target_link_libraries (opentld main libopentld cvblobs libconfig ${OpenCV_LIBS} )
34+ target_link_libraries (opentld main libopentld cvblobs config++ ${OpenCV_LIBS} )
3235
3336install (TARGETS opentld DESTINATION bin)
3437
@@ -46,13 +49,13 @@ if(BUILD_QOPENTLD)
4649 set (QOPENTLD_FORMS qopentld/ConfigDialog.ui)
4750 set (QOPENTLD_RCS ../../res/rcs.qrc)
4851
49- QT4_ADD_RESOURCES(QOPENTLD_RCS_HEADERS ${QOPENTLD_RCS} )
52+ QT4_ADD_RESOURCES(QOPENTLD_RCS_CPP ${QOPENTLD_RCS} )
5053 QT4_WRAP_CPP(QOPENTLD_HEADERS_MOC ${QOPENTLD_HEADERS} )
5154 QT4_WRAP_UI(QOPENTLD_FORMS_HEADERS ${QOPENTLD_FORMS} )
52- set (QOPENTLD_SOURCES ${QOPENTLD_SOURCES} ${QOPENTLD_RCS_HEADERS } ${QOPENTLD_HEADERS_MOC} ${QOPENTLD_FORMS_HEADERS} )
55+ set (QOPENTLD_SOURCES ${QOPENTLD_SOURCES} ${QOPENTLD_RCS_CPP } ${QOPENTLD_HEADERS_MOC} ${QOPENTLD_FORMS_HEADERS} )
5356
5457 add_executable (qopentld ${QOPENTLD_SOURCES} )
55- target_link_libraries (qopentld main libopentld cvblobs libconfig ${OpenCV_LIBS} ${QT_LIBRARIES} )
58+ target_link_libraries (qopentld main libopentld cvblobs config++ ${OpenCV_LIBS} ${QT_LIBRARIES} )
5659
5760 install (TARGETS qopentld DESTINATION bin)
5861endif (BUILD_QOPENTLD)
0 commit comments