fix(cmake): restoring output directory
This commit is contained in:
parent
bb5cf0113e
commit
cb728ac7c4
@ -157,9 +157,11 @@ target_link_libraries(poly PUBLIC
|
|||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(poly PUBLIC $<$<CXX_COMPILER_ID:GNU>:$<$<CONFIG:MinSizeRel>:-flto>>)
|
target_compile_options(poly PUBLIC $<$<CXX_COMPILER_ID:GNU>:$<$<CONFIG:MinSizeRel>:-flto>>)
|
||||||
|
set_target_properties(poly PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/libs)
|
||||||
|
|
||||||
add_executable(polybar main.cpp)
|
add_executable(polybar main.cpp)
|
||||||
target_link_libraries(polybar poly)
|
target_link_libraries(polybar poly)
|
||||||
|
set_target_properties(poly PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||||
|
|
||||||
install(TARGETS polybar
|
install(TARGETS polybar
|
||||||
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
DESTINATION ${CMAKE_INSTALL_BINDIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user