Skip to content

Commit f1f433f

Browse files
committed
Switched order of targets in examples/CMakeLists.txt
1 parent 8b9cd35 commit f1f433f

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

examples/CMakeLists.txt

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,16 @@ add_executable(fit-model fit-model.cpp)
3030
target_link_libraries(fit-model eos ${OpenCV_LIBS} ${Boost_LIBRARIES})
3131
target_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

3444
if(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)
4454
endif()
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

Comments
 (0)