@@ -30,6 +30,16 @@ add_executable(fit-model fit-model.cpp)
3030target_link_libraries (fit-model eos ${OpenCV_LIBS} ${Boost_LIBRARIES} )
3131target_link_libraries (fit-model "$<$<CXX_COMPILER_ID:GNU>:-pthread>$<$<CXX_COMPILER_ID:Clang>:-pthreads>" )
3232
33+ # Generate random samples from the model:
34+ add_executable (generate-obj generate-obj.cpp)
35+ target_link_libraries (generate-obj eos ${OpenCV_LIBS} ${Boost_LIBRARIES} )
36+
37+ # Install these targets:
38+ install (TARGETS fit-model-simple DESTINATION bin)
39+ install (TARGETS fit-model DESTINATION bin)
40+ install (TARGETS generate-obj DESTINATION bin)
41+ install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /data DESTINATION bin)
42+
3343
3444if (EOS_BUILD_CERES_EXAMPLE)
3545 # Find Ceres, for the fit-model-ceres app:
@@ -42,14 +52,3 @@ if(EOS_BUILD_CERES_EXAMPLE)
4252 target_link_libraries (fit-model-ceres eos ${CERES_LIBRARIES} ${OpenCV_LIBS} ${Boost_LIBRARIES} )
4353 install (TARGETS fit-model-ceres DESTINATION bin)
4454endif ()
45-
46- # Generate random samples from the model:
47- add_executable (generate-obj generate-obj.cpp)
48- target_link_libraries (generate-obj eos ${OpenCV_LIBS} ${Boost_LIBRARIES} )
49-
50-
51- # install target:
52- install (TARGETS fit-model-simple DESTINATION bin)
53- install (TARGETS fit-model DESTINATION bin)
54- install (TARGETS generate-obj DESTINATION bin)
55- install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} /data DESTINATION bin)
0 commit comments