diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 70d07b4f..53e8b5e2 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -157,9 +157,11 @@ target_link_libraries(poly PUBLIC ) target_compile_options(poly PUBLIC $<$:$<$:-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}