fix(cmake): restoring output directory

This commit is contained in:
Jérôme BOULMIER 2019-06-11 13:39:03 -04:00 committed by Patrick Ziegler
parent bb5cf0113e
commit cb728ac7c4

View File

@ -157,9 +157,11 @@ target_link_libraries(poly PUBLIC
)
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)
target_link_libraries(polybar poly)
set_target_properties(poly PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
install(TARGETS polybar
DESTINATION ${CMAKE_INSTALL_BINDIR}